33 return lxb_html_tree_insertion_mode_before_html_closed(tree, token);;
36 return lxb_html_tree_insertion_mode_before_html_open(tree, token);
54 if (comment ==
NULL) {
67 if (element ==
NULL) {
132 if (node_html ==
NULL) {
bool lxb_html_tree_insertion_mode_before_html(lxb_html_tree_t *tree, lxb_html_token_t *token)
lxb_inline lxb_status_t lxb_html_tree_insertion_mode_before_html_html(lxb_html_tree_t *tree, lxb_dom_node_t *node_html)
lxb_inline bool lxb_html_tree_insertion_mode_before_html_anything_else(lxb_html_tree_t *tree)
@ LXB_STATUS_ERROR_MEMORY_ALLOCATION
#define lxb_dom_interface_element(obj)
#define lxb_dom_interface_node(obj)
struct lxb_dom_comment lxb_dom_comment_t
struct lxb_dom_node lxb_dom_node_t
struct lxb_html_tree lxb_html_tree_t
struct lxb_html_element lxb_html_element_t
lxb_status_t lxb_html_token_data_skip_ws_begin(lxb_html_token_t *token)
@ LXB_HTML_TOKEN_TYPE_CLOSE
@ LXB_HTML_RULES_ERROR_DOTOINBEHTMO
@ LXB_HTML_RULES_ERROR_UNCLTOINBEHTMO
LXB_API bool lxb_html_tree_insertion_mode_before_head(lxb_html_tree_t *tree, lxb_html_token_t *token)
void lxb_dom_document_attach_element(lxb_dom_document_t *document, lxb_dom_element_t *element)
bool lxb_html_tree_process_abort(lxb_html_tree_t *tree)
lxb_dom_comment_t * lxb_html_tree_insert_comment(lxb_html_tree_t *tree, lxb_html_token_t *token, lxb_dom_node_t *pos)
lxb_html_element_t * lxb_html_tree_create_element_for_token(lxb_html_tree_t *tree, lxb_html_token_t *token, lxb_ns_id_t ns)
void lxb_html_tree_parse_error(lxb_html_tree_t *tree, lxb_html_token_t *token, lxb_html_tree_error_id_t id)
lxb_inline lxb_status_t lxb_html_tree_open_elements_push(lxb_html_tree_t *tree, lxb_dom_node_t *node)
lxb_dom_document_t dom_document
lxb_html_token_type_t type
const lxb_char_t * text_end
const lxb_char_t * text_start
bool has_explicit_html_tag
lxb_html_tree_insertion_mode_f mode
lxb_html_document_t * document
@ LXB_HTML_TREE_INSERTION_POSITION_CHILD
lxb_inline void lxb_html_tree_insert_node(lxb_dom_node_t *to, lxb_dom_node_t *node, lxb_html_tree_insertion_position_t ipos)
lxb_inline lxb_dom_node_t * lxb_html_tree_create_node(lxb_html_tree_t *tree, lxb_tag_id_t tag_id, lxb_ns_id_t ns)
unsigned int lxb_status_t