hubbub_error handle_in_table_body(hubbub_treebuilder *treebuilder, const hubbub_token *token)
Handle tokens in "in table body" insertion mode.
insertion_mode mode
The current insertion mode.
static hubbub_error table_sub_start_or_table_end(hubbub_treebuilder *treebuilder)
Handle the case common to some start tag and the table end tag cases.
hubbub_error insert_element(hubbub_treebuilder *treebuilder, const hubbub_tag *tag_name, bool push)
Create element and insert it into the DOM, potentially pushing it on the stack.
uint32_t element_in_scope(hubbub_treebuilder *treebuilder, element_type type, bool in_table)
Determine if an element is in (table) scope.
hubbub_error element_stack_pop(hubbub_treebuilder *treebuilder, hubbub_ns *ns, element_type *type, void **node)
Pop an element off the stack of open elements.
static void table_clear_stack(hubbub_treebuilder *treebuilder)
Clear the stack back to a table body context.