30 switch (token->
type) {
63 void *html, *appended;
75 tag.
name.
ptr = (
const uint8_t *)
"html";
hubbub_error process_comment_append(hubbub_treebuilder *treebuilder, const hubbub_token *token, void *parent)
Process a comment token, appending it to the given parent.
hubbub_token_type type
The token type.
void * ctx
Context pointer.
hubbub_ns ns
Tag namespace.
hubbub_string name
Tag name.
hubbub_tree_handler * tree_handler
Callback table.
const uint8_t * ptr
Pointer to data.
hubbub_error process_characters_expect_whitespace(hubbub_treebuilder *treebuilder, const hubbub_token *token, bool insert_into_current_node)
Process a character token in cases where we expect only whitespace.
insertion_mode mode
The current insertion mode.
size_t len
Byte length of string.
hubbub_treebuilder_context context
Our context.
hubbub_error handle_before_html(hubbub_treebuilder *treebuilder, const hubbub_token *token)
Handle token in "before html" insertion mode.
hubbub_attribute * attributes
Array of attribute data.
hubbub_tree_unref_node unref_node
Unreference node.
void * document
Pointer to the document node.
hubbub_tree_create_element create_element
Create element.
union hubbub_token::@3 data
Type-specific data.
element_type type
Element type.
element_type element_type_from_name(hubbub_treebuilder *treebuilder, const hubbub_string *tag_name)
Convert an element name into an element type.
hubbub_tree_append_child append_child
Append child.
element_context * element_stack
Stack of open elements.
uint32_t n_attributes
Count of attributes.
uint32_t current_node
Index of current node in stack.