Lines Matching refs:node

425     lxb_dom_node_t *node = lxb_html_tree_create_node(tree, token->tag_id, ns);  in lxb_html_tree_create_element_for_token()  local
426 if (node == NULL) { in lxb_html_tree_create_element_for_token()
430 node->line = token->line; in lxb_html_tree_create_element_for_token()
434 lxb_dom_element_t *element = lxb_dom_interface_element(node); in lxb_html_tree_create_element_for_token()
448 return lxb_html_interface_element(node); in lxb_html_tree_create_element_for_token()
461 doc = lxb_html_interface_document(element->node.owner_document); in lxb_html_tree_append_attributes()
484 attr->node.local_name = token_attr->name->attr_id; in lxb_html_tree_append_attributes()
485 attr->node.ns = ns; in lxb_html_tree_append_attributes()
514 new_attr = lxb_dom_attr_interface_create(element->node.owner_document); in lxb_html_tree_append_attributes_from_element()
524 new_attr->node.ns = attr->node.ns; in lxb_html_tree_append_attributes_from_element()
549 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_mathml_attributes()
550 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_mathml_attributes()
579 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_svg_attributes()
581 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_svg_attributes()
619 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_foreign_attributes()
620 prefix = attr->node.owner_document->prefix; in lxb_html_tree_adjust_foreign_attributes()
622 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_foreign_attributes()
648 attr->node.local_name = attr_data->attr_id; in lxb_html_tree_adjust_foreign_attributes()
656 attr->node.prefix = prefix_data->prefix_id; in lxb_html_tree_adjust_foreign_attributes()
659 attr->node.ns = adjust->ns; in lxb_html_tree_adjust_foreign_attributes()
793 lxb_dom_node_t *node; in lxb_html_tree_insert_comment() local
806 node = lxb_html_tree_create_node(tree, token->tag_id, pos->ns); in lxb_html_tree_insert_comment()
807 comment = lxb_dom_interface_comment(node); in lxb_html_tree_insert_comment()
813 node->line = token->line; in lxb_html_tree_insert_comment()
822 lxb_html_tree_insert_node(pos, node, ipos); in lxb_html_tree_insert_comment()
857 lxb_html_tree_node_delete_deep(lxb_html_tree_t *tree, lxb_dom_node_t *node) in lxb_html_tree_node_delete_deep() argument
859 lxb_dom_node_remove(node); in lxb_html_tree_node_delete_deep()
917 lxb_dom_node_t *node; in lxb_html_tree_generate_implied_end_tags() local
922 node = lxb_html_tree_current_node(tree); in lxb_html_tree_generate_implied_end_tags()
924 lexbor_assert(node != NULL); in lxb_html_tree_generate_implied_end_tags()
926 switch (node->local_name) { in lxb_html_tree_generate_implied_end_tags()
937 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_implied_end_tags()
956 lxb_dom_node_t *node; in lxb_html_tree_generate_all_implied_end_tags_thoroughly() local
961 node = lxb_html_tree_current_node(tree); in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
963 lexbor_assert(node != NULL); in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
965 switch (node->local_name) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
984 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
1001 lxb_dom_node_t *node; in lxb_html_tree_reset_insertion_mode_appropriately() local
1013 node = list[idx]; in lxb_html_tree_reset_insertion_mode_appropriately()
1020 node = tree->fragment; in lxb_html_tree_reset_insertion_mode_appropriately()
1024 lexbor_assert(node != NULL); in lxb_html_tree_reset_insertion_mode_appropriately()
1027 if (node->ns != LXB_NS_HTML) { in lxb_html_tree_reset_insertion_mode_appropriately()
1037 if (node->local_name == LXB_TAG_SELECT) { in lxb_html_tree_reset_insertion_mode_appropriately()
1074 switch (node->local_name) { in lxb_html_tree_reset_insertion_mode_appropriately()
1155 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope() local
1162 node = list[idx]; in lxb_html_tree_element_in_scope()
1164 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_element_in_scope()
1165 return node; in lxb_html_tree_element_in_scope()
1168 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope()
1181 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_by_node() local
1188 node = list[idx]; in lxb_html_tree_element_in_scope_by_node()
1190 if (node == by_node) { in lxb_html_tree_element_in_scope_by_node()
1191 return node; in lxb_html_tree_element_in_scope_by_node()
1194 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope_by_node()
1205 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_h123456() local
1212 node = list[idx]; in lxb_html_tree_element_in_scope_h123456()
1214 switch (node->local_name) { in lxb_html_tree_element_in_scope_h123456()
1221 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_h123456()
1222 return node; in lxb_html_tree_element_in_scope_h123456()
1231 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_h123456()
1244 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_tbody_thead_tfoot() local
1251 node = list[idx]; in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1253 switch (node->local_name) { in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1257 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1258 return node; in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1267 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1280 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_td_th() local
1287 node = list[idx]; in lxb_html_tree_element_in_scope_td_th()
1289 switch (node->local_name) { in lxb_html_tree_element_in_scope_td_th()
1292 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_td_th()
1293 return node; in lxb_html_tree_element_in_scope_td_th()
1302 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_td_th()
1315 lxb_dom_node_t *node; in lxb_html_tree_check_scope_element() local
1318 node = tree->open_elements->list[i]; in lxb_html_tree_check_scope_element()
1320 switch (node->local_name) { in lxb_html_tree_check_scope_element()
1354 lxb_dom_node_t *node = lxb_html_tree_current_node(tree); in lxb_html_tree_close_p_element() local
1356 if (lxb_html_tree_node_is(node, LXB_TAG_P) == false) { in lxb_html_tree_close_p_element()
1378 lxb_dom_node_t *node, *marker, **oel_list, **afe_list; in lxb_html_tree_adoption_agency_algorithm() local
1389 node = lxb_html_tree_current_node(tree); in lxb_html_tree_adoption_agency_algorithm()
1390 lexbor_assert(node != NULL); in lxb_html_tree_adoption_agency_algorithm()
1392 if (lxb_html_tree_node_is(node, subject)) { in lxb_html_tree_adoption_agency_algorithm()
1393 is = lxb_html_tree_active_formatting_find_by_node_reverse(tree, node, in lxb_html_tree_adoption_agency_algorithm()
1449 node = lxb_html_tree_element_in_scope_by_node(tree, formatting_element, in lxb_html_tree_adoption_agency_algorithm()
1451 if (node == NULL) { in lxb_html_tree_adoption_agency_algorithm()
1458 node = lxb_html_tree_current_node(tree); in lxb_html_tree_adoption_agency_algorithm()
1460 if (formatting_element != node) { in lxb_html_tree_adoption_agency_algorithm()
1504 lxb_dom_node_t *node; in lxb_html_tree_adoption_agency_algorithm() local
1523 node = oel_list[node_idx]; in lxb_html_tree_adoption_agency_algorithm()
1526 if (node == formatting_element) { in lxb_html_tree_adoption_agency_algorithm()
1533 node, in lxb_html_tree_adoption_agency_algorithm()
1537 lxb_html_tree_active_formatting_remove_by_node(tree, node); in lxb_html_tree_adoption_agency_algorithm()
1544 lxb_html_tree_open_elements_remove_by_node(tree, node); in lxb_html_tree_adoption_agency_algorithm()
1552 fake_token.tag_id = node->local_name; in lxb_html_tree_adoption_agency_algorithm()
1553 fake_token.base_element = node; in lxb_html_tree_adoption_agency_algorithm()
1563 node = lxb_dom_interface_node(element); in lxb_html_tree_adoption_agency_algorithm()
1565 afe_list[afe_node_idx] = node; in lxb_html_tree_adoption_agency_algorithm()
1566 oel_list[node_idx] = node; in lxb_html_tree_adoption_agency_algorithm()
1580 lxb_dom_node_insert_child_wo_events(node, last); in lxb_html_tree_adoption_agency_algorithm()
1583 last = node; in lxb_html_tree_adoption_agency_algorithm()
1619 node = furthest_block->first_child; in lxb_html_tree_adoption_agency_algorithm()
1621 while (node != NULL) { in lxb_html_tree_adoption_agency_algorithm()
1622 next = node->next; in lxb_html_tree_adoption_agency_algorithm()
1624 lxb_dom_node_remove_wo_events(node); in lxb_html_tree_adoption_agency_algorithm()
1626 node); in lxb_html_tree_adoption_agency_algorithm()
1627 node = next; in lxb_html_tree_adoption_agency_algorithm()
1630 node = lxb_dom_interface_node(element); in lxb_html_tree_adoption_agency_algorithm()
1633 lxb_dom_node_insert_child_wo_events(furthest_block, node); in lxb_html_tree_adoption_agency_algorithm()
1642 *status = lxb_html_tree_active_formatting_insert(tree, node, bookmark); in lxb_html_tree_adoption_agency_algorithm()
1653 *status = lxb_html_tree_open_elements_insert_after(tree, node, in lxb_html_tree_adoption_agency_algorithm()
1664 lxb_html_tree_html_integration_point(lxb_dom_node_t *node) in lxb_html_tree_html_integration_point() argument
1666 if (node->ns == LXB_NS_MATH in lxb_html_tree_html_integration_point()
1667 && node->local_name == LXB_TAG_ANNOTATION_XML) in lxb_html_tree_html_integration_point()
1670 attr = lxb_dom_element_attr_is_exist(lxb_dom_interface_element(node), in lxb_html_tree_html_integration_point()
1694 if (node->ns == LXB_NS_SVG in lxb_html_tree_html_integration_point()
1695 && (node->local_name == LXB_TAG_FOREIGNOBJECT in lxb_html_tree_html_integration_point()
1696 || node->local_name == LXB_TAG_DESC in lxb_html_tree_html_integration_point()
1697 || node->local_name == LXB_TAG_TITLE)) in lxb_html_tree_html_integration_point()