Lines Matching refs:token

24                                                                   lxb_html_token_t *token)  in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()  argument
27 return tree->mode(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
34 if (idx > 0 && list[idx]->local_name != token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
35 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
40 if (list[idx]->local_name == token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
53 return tree->mode(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
61 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_script_closed() argument
67 token); in lxb_html_tree_insertion_mode_foreign_content_script_closed()
77 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_anything_else() argument
90 element = lxb_html_tree_insert_foreign_element(tree, token, node->ns); in lxb_html_tree_insertion_mode_foreign_content_anything_else()
109 if ((token->type & LXB_HTML_TOKEN_TYPE_CLOSE_SELF) == 0) { in lxb_html_tree_insertion_mode_foreign_content_anything_else()
115 if (token->tag_id == LXB_TAG_SCRIPT && node->ns == LXB_NS_SVG) { in lxb_html_tree_insertion_mode_foreign_content_anything_else()
116 lxb_html_tree_acknowledge_token_self_closing(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else()
117 return lxb_html_tree_insertion_mode_foreign_content_script_closed(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else()
121 lxb_html_tree_acknowledge_token_self_closing(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else()
129 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_text() argument
133 if (token->null_count != 0) { in lxb_html_tree_insertion_mode_foreign_content_text()
134 lxb_html_tree_parse_error(tree, token, LXB_HTML_RULES_ERROR_NUCH); in lxb_html_tree_insertion_mode_foreign_content_text()
136 tree->status = lxb_html_token_make_text_replace_null(token, &str, in lxb_html_tree_insertion_mode_foreign_content_text()
140 tree->status = lxb_html_token_make_text(token, &str, in lxb_html_tree_insertion_mode_foreign_content_text()
204 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_comment() argument
208 comment = lxb_html_tree_insert_comment(tree, token, NULL); in lxb_html_tree_insertion_mode_foreign_content_comment()
220 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_doctype() argument
222 lxb_html_tree_parse_error(tree, token, LXB_HTML_RULES_ERROR_DOTOFOCOMO); in lxb_html_tree_insertion_mode_foreign_content_doctype()
237 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content_all() argument
241 if (token->tag_id == LXB_TAG_FONT) { in lxb_html_tree_insertion_mode_foreign_content_all()
242 lxb_html_token_attr_t *attr = token->attr_first; in lxb_html_tree_insertion_mode_foreign_content_all()
257 token); in lxb_html_tree_insertion_mode_foreign_content_all()
262 lxb_html_tree_parse_error(tree, token, LXB_HTML_RULES_ERROR_UNTO); in lxb_html_tree_insertion_mode_foreign_content_all()
266 token); in lxb_html_tree_insertion_mode_foreign_content_all()
284 lxb_html_token_t *token) in lxb_html_tree_insertion_mode_foreign_content() argument
286 if (token->type & LXB_HTML_TOKEN_TYPE_CLOSE) { in lxb_html_tree_insertion_mode_foreign_content()
287 switch (token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content()
290 token); in lxb_html_tree_insertion_mode_foreign_content()
293 token); in lxb_html_tree_insertion_mode_foreign_content()
297 switch (token->tag_id) { in lxb_html_tree_insertion_mode_foreign_content()
300 token); in lxb_html_tree_insertion_mode_foreign_content()
303 token); in lxb_html_tree_insertion_mode_foreign_content()
306 token); in lxb_html_tree_insertion_mode_foreign_content()
353 token); in lxb_html_tree_insertion_mode_foreign_content()
356 token); in lxb_html_tree_insertion_mode_foreign_content()