Lines Matching refs:node

432     lxb_dom_node_t *node = lxb_html_tree_create_node(tree, token->tag_id, ns);  in lxb_html_tree_create_element_for_token()  local
433 if (node == NULL) { in lxb_html_tree_create_element_for_token()
437 node->line = token->line; in lxb_html_tree_create_element_for_token()
441 lxb_dom_element_t *element = lxb_dom_interface_element(node); in lxb_html_tree_create_element_for_token()
455 return lxb_html_interface_element(node); in lxb_html_tree_create_element_for_token()
468 doc = lxb_html_interface_document(element->node.owner_document); in lxb_html_tree_append_attributes()
491 attr->node.local_name = token_attr->name->attr_id; in lxb_html_tree_append_attributes()
492 attr->node.ns = ns; in lxb_html_tree_append_attributes()
521 new_attr = lxb_dom_attr_interface_create(element->node.owner_document); in lxb_html_tree_append_attributes_from_element()
531 new_attr->node.ns = attr->node.ns; in lxb_html_tree_append_attributes_from_element()
556 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_mathml_attributes()
557 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_mathml_attributes()
586 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_svg_attributes()
588 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_svg_attributes()
626 attrs = attr->node.owner_document->attrs; in lxb_html_tree_adjust_foreign_attributes()
627 prefix = attr->node.owner_document->prefix; in lxb_html_tree_adjust_foreign_attributes()
629 data = lxb_dom_attr_data_by_id(attrs, attr->node.local_name); in lxb_html_tree_adjust_foreign_attributes()
655 attr->node.local_name = attr_data->attr_id; in lxb_html_tree_adjust_foreign_attributes()
663 attr->node.prefix = prefix_data->prefix_id; in lxb_html_tree_adjust_foreign_attributes()
666 attr->node.ns = adjust->ns; in lxb_html_tree_adjust_foreign_attributes()
800 lxb_dom_node_t *node; in lxb_html_tree_insert_comment() local
813 node = lxb_html_tree_create_node(tree, token->tag_id, pos->ns); in lxb_html_tree_insert_comment()
814 comment = lxb_dom_interface_comment(node); in lxb_html_tree_insert_comment()
820 node->line = token->line; in lxb_html_tree_insert_comment()
829 lxb_html_tree_insert_node(pos, node, ipos); in lxb_html_tree_insert_comment()
864 lxb_html_tree_node_delete_deep(lxb_html_tree_t *tree, lxb_dom_node_t *node) in lxb_html_tree_node_delete_deep() argument
866 lxb_dom_node_remove(node); in lxb_html_tree_node_delete_deep()
924 lxb_dom_node_t *node; in lxb_html_tree_generate_implied_end_tags() local
929 node = lxb_html_tree_current_node(tree); in lxb_html_tree_generate_implied_end_tags()
931 lexbor_assert(node != NULL); in lxb_html_tree_generate_implied_end_tags()
933 switch (node->local_name) { in lxb_html_tree_generate_implied_end_tags()
944 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_implied_end_tags()
963 lxb_dom_node_t *node; in lxb_html_tree_generate_all_implied_end_tags_thoroughly() local
968 node = lxb_html_tree_current_node(tree); in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
970 lexbor_assert(node != NULL); in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
972 switch (node->local_name) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
991 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly()
1008 lxb_dom_node_t *node; in lxb_html_tree_reset_insertion_mode_appropriately() local
1020 node = list[idx]; in lxb_html_tree_reset_insertion_mode_appropriately()
1027 node = tree->fragment; in lxb_html_tree_reset_insertion_mode_appropriately()
1031 lexbor_assert(node != NULL); in lxb_html_tree_reset_insertion_mode_appropriately()
1034 if (node->ns != LXB_NS_HTML) { in lxb_html_tree_reset_insertion_mode_appropriately()
1044 if (node->local_name == LXB_TAG_SELECT) { in lxb_html_tree_reset_insertion_mode_appropriately()
1081 switch (node->local_name) { in lxb_html_tree_reset_insertion_mode_appropriately()
1162 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope() local
1169 node = list[idx]; in lxb_html_tree_element_in_scope()
1171 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_element_in_scope()
1172 return node; in lxb_html_tree_element_in_scope()
1175 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope()
1188 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_by_node() local
1195 node = list[idx]; in lxb_html_tree_element_in_scope_by_node()
1197 if (node == by_node) { in lxb_html_tree_element_in_scope_by_node()
1198 return node; in lxb_html_tree_element_in_scope_by_node()
1201 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope_by_node()
1212 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_h123456() local
1219 node = list[idx]; in lxb_html_tree_element_in_scope_h123456()
1221 switch (node->local_name) { in lxb_html_tree_element_in_scope_h123456()
1228 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_h123456()
1229 return node; in lxb_html_tree_element_in_scope_h123456()
1238 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_h123456()
1251 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_tbody_thead_tfoot() local
1258 node = list[idx]; in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1260 switch (node->local_name) { in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1264 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1265 return node; in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1274 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_tbody_thead_tfoot()
1287 lxb_dom_node_t *node; in lxb_html_tree_element_in_scope_td_th() local
1294 node = list[idx]; in lxb_html_tree_element_in_scope_td_th()
1296 switch (node->local_name) { in lxb_html_tree_element_in_scope_td_th()
1299 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_element_in_scope_td_th()
1300 return node; in lxb_html_tree_element_in_scope_td_th()
1309 if (lxb_html_tag_is_category(node->local_name, LXB_NS_HTML, in lxb_html_tree_element_in_scope_td_th()
1322 lxb_dom_node_t *node; in lxb_html_tree_check_scope_element() local
1325 node = tree->open_elements->list[i]; in lxb_html_tree_check_scope_element()
1327 switch (node->local_name) { in lxb_html_tree_check_scope_element()
1361 lxb_dom_node_t *node = lxb_html_tree_current_node(tree); in lxb_html_tree_close_p_element() local
1363 if (lxb_html_tree_node_is(node, LXB_TAG_P) == false) { in lxb_html_tree_close_p_element()
1385 lxb_dom_node_t *node, *marker, **oel_list, **afe_list; in lxb_html_tree_adoption_agency_algorithm() local
1396 node = lxb_html_tree_current_node(tree); in lxb_html_tree_adoption_agency_algorithm()
1397 lexbor_assert(node != NULL); in lxb_html_tree_adoption_agency_algorithm()
1399 if (lxb_html_tree_node_is(node, subject)) { in lxb_html_tree_adoption_agency_algorithm()
1400 is = lxb_html_tree_active_formatting_find_by_node_reverse(tree, node, in lxb_html_tree_adoption_agency_algorithm()
1456 node = lxb_html_tree_element_in_scope_by_node(tree, formatting_element, in lxb_html_tree_adoption_agency_algorithm()
1458 if (node == NULL) { in lxb_html_tree_adoption_agency_algorithm()
1465 node = lxb_html_tree_current_node(tree); in lxb_html_tree_adoption_agency_algorithm()
1467 if (formatting_element != node) { in lxb_html_tree_adoption_agency_algorithm()
1511 lxb_dom_node_t *node; in lxb_html_tree_adoption_agency_algorithm() local
1530 node = oel_list[node_idx]; in lxb_html_tree_adoption_agency_algorithm()
1533 if (node == formatting_element) { in lxb_html_tree_adoption_agency_algorithm()
1540 node, in lxb_html_tree_adoption_agency_algorithm()
1544 lxb_html_tree_active_formatting_remove_by_node(tree, node); in lxb_html_tree_adoption_agency_algorithm()
1551 lxb_html_tree_open_elements_remove_by_node(tree, node); in lxb_html_tree_adoption_agency_algorithm()
1559 fake_token.tag_id = node->local_name; in lxb_html_tree_adoption_agency_algorithm()
1560 fake_token.base_element = node; in lxb_html_tree_adoption_agency_algorithm()
1571 node = lxb_dom_interface_node(element); in lxb_html_tree_adoption_agency_algorithm()
1573 afe_list[afe_node_idx] = node; in lxb_html_tree_adoption_agency_algorithm()
1574 oel_list[node_idx] = node; in lxb_html_tree_adoption_agency_algorithm()
1588 lxb_dom_node_insert_child_wo_events(node, last); in lxb_html_tree_adoption_agency_algorithm()
1591 last = node; in lxb_html_tree_adoption_agency_algorithm()
1628 node = furthest_block->first_child; in lxb_html_tree_adoption_agency_algorithm()
1630 while (node != NULL) { in lxb_html_tree_adoption_agency_algorithm()
1631 next = node->next; in lxb_html_tree_adoption_agency_algorithm()
1633 lxb_dom_node_remove_wo_events(node); in lxb_html_tree_adoption_agency_algorithm()
1635 node); in lxb_html_tree_adoption_agency_algorithm()
1636 node = next; in lxb_html_tree_adoption_agency_algorithm()
1639 node = lxb_dom_interface_node(element); in lxb_html_tree_adoption_agency_algorithm()
1642 lxb_dom_node_insert_child_wo_events(furthest_block, node); in lxb_html_tree_adoption_agency_algorithm()
1651 *status = lxb_html_tree_active_formatting_insert(tree, node, bookmark); in lxb_html_tree_adoption_agency_algorithm()
1662 *status = lxb_html_tree_open_elements_insert_after(tree, node, in lxb_html_tree_adoption_agency_algorithm()
1673 lxb_html_tree_html_integration_point(lxb_dom_node_t *node) in lxb_html_tree_html_integration_point() argument
1675 if (node->ns == LXB_NS_MATH in lxb_html_tree_html_integration_point()
1676 && node->local_name == LXB_TAG_ANNOTATION_XML) in lxb_html_tree_html_integration_point()
1679 attr = lxb_dom_element_attr_is_exist(lxb_dom_interface_element(node), in lxb_html_tree_html_integration_point()
1703 if (node->ns == LXB_NS_SVG in lxb_html_tree_html_integration_point()
1704 && (node->local_name == LXB_TAG_FOREIGNOBJECT in lxb_html_tree_html_integration_point()
1705 || node->local_name == LXB_TAG_DESC in lxb_html_tree_html_integration_point()
1706 || node->local_name == LXB_TAG_TITLE)) in lxb_html_tree_html_integration_point()