/PHP-8.2/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | element.c | 83 if (node == NULL) { in lxb_html_element_inner_html_set() 120 return (node != NULL) ? node->entry.value : NULL; in lxb_html_element_style_by_name() 132 if (node == NULL) { in lxb_html_element_style_by_id() 179 if (node == NULL) { in lxb_html_element_css_property_by_id() 292 if (node != NULL) { in lxb_html_element_style_append() 298 node->entry.value, node->sp); in lxb_html_element_style_append() 306 node->sp = spec; in lxb_html_element_style_append() 313 if (node == NULL) { in lxb_html_element_style_append() 318 node->sp = spec; in lxb_html_element_style_append() 346 weak = node->weak; in lxb_html_element_style_weak_append() [all …]
|
H A D | document.c | 176 if (doc->node.owner_document == doc) { in lxb_html_document_interface_destroy() 681 if (node->ns != LXB_NS_HTML) { in lxb_html_document_style_cb() 961 if (node->local_name == LXB_TAG_TITLE && node->ns == LXB_NS_HTML) { in lxb_html_document_title_walker() 962 *((void **) ctx) = node; in lxb_html_document_title_walker() 994 if (node->ns != LXB_NS_HTML) { 1032 if (node->ns != LXB_NS_HTML) { 1036 attr = lxb_dom_interface_attr(node); 1071 if (node->ns != LXB_NS_HTML) { 1124 if (node->local_name != LXB_DOM_ATTR_STYLE || node->ns != LXB_NS_HTML) { 1182 if (node->ns != LXB_NS_HTML) { [all …]
|
H A D | style_element.c | 22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_html_style_element_interface_create() local 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_style_element_interface_create() 25 node->type = LXB_DOM_NODE_TYPE_ELEMENT; in lxb_html_style_element_interface_create() 53 lxb_dom_node_t *node; in lxb_html_style_element_parse() local 59 node = lxb_dom_interface_node(element); in lxb_html_style_element_parse() 61 if (node->first_child == NULL in lxb_html_style_element_parse() 62 || node->first_child->local_name != LXB_TAG__TEXT in lxb_html_style_element_parse() 63 || node->first_child != node->last_child) in lxb_html_style_element_parse()
|
/PHP-8.2/ext/dom/lexbor/lexbor/dom/ |
H A D | interface.c | 33 domel->node.local_name = tag_id; in lxb_dom_interface_create() 34 domel->node.ns = ns; in lxb_dom_interface_create() 43 const lxb_dom_node_t *node = intrfc; in lxb_dom_interface_clone() local 46 document = node->owner_document; in lxb_dom_interface_clone() 49 switch (node->type) { in lxb_dom_interface_clone() 69 return lxb_dom_node_interface_clone(document, node, false); in lxb_dom_interface_clone() 80 lxb_dom_node_t *node = intrfc; in lxb_dom_interface_destroy() local 82 switch (node->type) { in lxb_dom_interface_destroy() 108 return lexbor_mraw_free(node->owner_document->mraw, intrfc); in lxb_dom_interface_destroy()
|
/PHP-8.2/ext/dom/tests/ |
H A D | dom007.phpt | 47 foreach ($nots AS $key=>$node) { 48 echo "Key $key: ".$node->nodeName." (".$node->systemId.") (".$node->publicId.")\n"; 56 $node = $nots->getNamedItem('xxx'); 57 var_dump($node); 66 foreach ($ents AS $key=>$node) { 70 foreach ($xkeys as $key => $node) { 71 echo $node; 81 echo $node; 85 $node = $ents->item(3); 86 var_dump($node); [all …]
|
H A D | bug36756.phpt | 2 Bug #36756 (DOMDocument::removeChild corrupts node) 12 $node = $xpath->query('/root')->item(0); 13 echo $node->nodeName . "\n"; 15 echo "nodeType: " . $node->nodeType . "\n"; 19 $node = $xpath->query('//child')->item(0); 20 echo $node->nodeName . "\n"; 23 echo "nodeType: " . $node->nodeType . "\n";
|
H A D | bug46335.phpt | 13 $node = $dom->createTextNode($textascii); 14 $dom->appendChild($node); 16 print "Text: $node->textContent\n"; 18 $matched = $node->splitText($start); 22 $node = $dom->createTextNode($text); 23 $dom->appendChild($node); 25 print "Text: $node->textContent\n"; 27 $matched = $node->splitText($start);
|
H A D | toString_exceptions.phpt | 18 '<root xmlns:ns="foo"><node attr="foo" /><node>Text</node><ns:node/><?pi foobar?></root>'); 25 $node = $root->childNodes[0]; 26 $attrs = $node->attributes; 58 <root xmlns:ns="foo"><node attr="foo"/><node>Text</node><ns:node/><?pi foobar?></root>
|
H A D | gh11682.phpt | 9 $dom->loadXML('<?xml version="1.0" ?><root><node /></root>'); 17 $node = $dom->getElementsByTagName('node')->item(0); 19 $node->before(...$list); 20 $node->remove();
|
/PHP-8.2/ext/dom/ |
H A D | xml_document.c | 72 xmlNodePtr node = doc->children; in dom_mark_namespaces_as_attributes_too() local 73 while (node != NULL) { in dom_mark_namespaces_as_attributes_too() 74 if (node->type == XML_ELEMENT_NODE) { in dom_mark_namespaces_as_attributes_too() 77 if (node->children) { in dom_mark_namespaces_as_attributes_too() 78 node = node->children; in dom_mark_namespaces_as_attributes_too() 83 if (node->next) { in dom_mark_namespaces_as_attributes_too() 84 node = node->next; in dom_mark_namespaces_as_attributes_too() 88 node = node->parent; in dom_mark_namespaces_as_attributes_too() 89 if (node == NULL) { in dom_mark_namespaces_as_attributes_too() 92 } while (node->next == NULL); in dom_mark_namespaces_as_attributes_too() [all …]
|
H A D | html5_parser.c | 37 lxb_dom_node_t *node; member 45 lxb_dom_node_t *node, in lexbor_libxml2_bridge_work_list_item_push() argument 52 item->node = node; in lexbor_libxml2_bridge_work_list_item_push() 109 for (lxb_dom_node_t *node = start_node; node != NULL; node = node->prev) { in lexbor_libxml2_bridge_convert() local 115 lxb_dom_node_t *node = current_stack_item->node; in lexbor_libxml2_bridge_convert() local 120 if (node->type == LXB_DOM_NODE_TYPE_ELEMENT) { in lexbor_libxml2_bridge_convert() 132 lxml_element->line = sanitize_line_nr(node->line); in lexbor_libxml2_bridge_convert() 135 uintptr_t entering_namespace = element->node.ns; in lexbor_libxml2_bridge_convert() 200 } else if (node->type == LXB_DOM_NODE_TYPE_TEXT) { in lexbor_libxml2_bridge_convert() 214 if (node->line >= USHRT_MAX) { in lexbor_libxml2_bridge_convert() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/ |
H A D | active_formatting.c | 44 lxb_dom_node_t *node) in lxb_html_tree_active_formatting_remove_by_node() argument 53 if (list[idx] == node) { in lxb_html_tree_active_formatting_remove_by_node() 67 lxb_dom_node_t *node, in lxb_html_tree_active_formatting_find_by_node() argument 73 if (list[i] == node) { in lxb_html_tree_active_formatting_find_by_node() 100 if (list[len] == node) { in lxb_html_tree_active_formatting_find_by_node_reverse() 159 lxb_dom_node_t *node; in lxb_html_tree_active_formatting_reconstruct_elements() local 164 node = list[af_idx]; in lxb_html_tree_active_formatting_reconstruct_elements() 166 fake_token.tag_id = node->local_name; in lxb_html_tree_active_formatting_reconstruct_elements() 167 fake_token.base_element = node; in lxb_html_tree_active_formatting_reconstruct_elements() 227 if(list[idx]->local_name == node->local_name && list[idx]->ns == node->ns in lxb_html_tree_active_formatting_push_with_check_dupl() [all …]
|
H A D | open_elements.h | 21 lxb_dom_node_t *node); 37 lxb_dom_node_t *node, 46 lxb_dom_node_t *node, 51 lxb_dom_node_t *node, 81 lxb_html_tree_open_elements_push(lxb_html_tree_t *tree, lxb_dom_node_t *node) in lxb_html_tree_open_elements_push() argument 83 return lexbor_array_push(tree->open_elements, node); in lxb_html_tree_open_elements_push() 93 lxb_html_tree_open_elements_insert_after(lxb_html_tree_t *tree, lxb_dom_node_t *node, in lxb_html_tree_open_elements_insert_after() argument 96 return lexbor_array_insert(tree->open_elements, (idx + 1), node); in lxb_html_tree_open_elements_insert_after()
|
H A D | active_formatting.h | 27 lxb_dom_node_t *node); 31 lxb_dom_node_t *node, 36 lxb_dom_node_t *node, 49 lxb_dom_node_t *node); 80 lxb_dom_node_t *node) in lxb_html_tree_active_formatting_push() argument 82 return lexbor_array_push(tree->active_formatting, node); in lxb_html_tree_active_formatting_push() 100 lxb_dom_node_t *node, size_t idx) in lxb_html_tree_active_formatting_insert() argument 102 return lexbor_array_insert(tree->active_formatting, idx, node); in lxb_html_tree_active_formatting_insert()
|
/PHP-8.2/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | character_data.c | 22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_dom_character_data_interface_create() local 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_character_data_interface_create() 25 node->type = LXB_DOM_NODE_TYPE_UNDEF; in lxb_dom_character_data_interface_create() 51 lxb_dom_node_t *node; in lxb_dom_character_data_interface_destroy() local 56 node = lxb_dom_interface_node(character_data); in lxb_dom_character_data_interface_destroy() 57 doc = node->owner_document; in lxb_dom_character_data_interface_destroy() 59 (void) lxb_dom_node_interface_destroy(node); in lxb_dom_character_data_interface_destroy() 72 status = lxb_dom_node_interface_copy(&dst->node, &src->node, false); in lxb_dom_character_data_interface_copy() 95 lexbor_str_init(&ch_data->data, ch_data->node.owner_document->text, len); in lxb_dom_character_data_replace() 104 ch_data->node.owner_document->text, (len + 1)); in lxb_dom_character_data_replace()
|
H A D | document.c | 79 lxb_dom_node_t *node; in lxb_dom_document_init() local 98 node->ns = ns; in lxb_dom_document_init() 414 lxb_dom_node_t *node; in lxb_dom_document_root() local 417 node = document->node.first_child; in lxb_dom_document_root() 424 node = node->next; in lxb_dom_document_root() 447 root = node; in lxb_dom_document_import_node() 448 node = node->first_child; in lxb_dom_document_import_node() 459 node = node->first_child; in lxb_dom_document_import_node() 463 while (node->next == NULL && node != root) { in lxb_dom_document_import_node() 464 node = node->parent; in lxb_dom_document_import_node() [all …]
|
H A D | element.c | 46 node->type = LXB_DOM_NODE_TYPE_ELEMENT; in lxb_dom_element_interface_create() 96 status = lxb_dom_node_interface_copy(&dst->node, &src->node, false); in lxb_dom_element_interface_copy() 223 element->node.local_name = tag_data->tag_id; in lxb_dom_element_create() 224 element->node.ns = ns_data->ns_id; in lxb_dom_element_create() 272 attr->node.ns = element->node.ns; in lxb_dom_element_set_attribute() 274 if (element->node.ns == LXB_NS_HTML in lxb_dom_element_set_attribute() 413 if (element->node.ns == LXB_NS_HTML in lxb_dom_element_attr_by_name() 480 if (first->node.local_name != second->node.local_name in lxb_dom_element_compare() 481 || first->node.ns != second->node.ns in lxb_dom_element_compare() 710 data->tag_id = element->node.local_name; in lxb_dom_element_upper_update() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | in_caption.c | 16 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_caption_caption_closed() local 18 node = lxb_html_tree_element_in_scope(tree, LXB_TAG_CAPTION, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_caption_caption_closed() 20 if (node == NULL) { in lxb_html_tree_insertion_mode_in_caption_caption_closed() 29 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_caption_caption_closed() 31 if (lxb_html_tree_node_is(node, LXB_TAG_CAPTION) == false) { in lxb_html_tree_insertion_mode_in_caption_caption_closed() 55 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_caption_ct_open_closed() local 57 node = lxb_html_tree_element_in_scope(tree, LXB_TAG_CAPTION, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_caption_ct_open_closed() 59 if (node == NULL) { in lxb_html_tree_insertion_mode_in_caption_ct_open_closed() 68 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_caption_ct_open_closed() 70 if (lxb_html_tree_node_is(node, LXB_TAG_CAPTION) == false) { in lxb_html_tree_insertion_mode_in_caption_ct_open_closed()
|
H A D | in_row.c | 59 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_row_tr_closed() local 61 node = lxb_html_tree_element_in_scope(tree, LXB_TAG_TR, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_row_tr_closed() 63 if (node == NULL) { in lxb_html_tree_insertion_mode_in_row_tr_closed() 86 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_row_ct_open_closed() local 88 node = lxb_html_tree_element_in_scope(tree, LXB_TAG_TR, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_row_ct_open_closed() 90 if (node == NULL) { in lxb_html_tree_insertion_mode_in_row_ct_open_closed() 111 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_row_tbtfth_closed() local 113 node = lxb_html_tree_element_in_scope(tree, token->tag_id, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_row_tbtfth_closed() 115 if (node == NULL) { in lxb_html_tree_insertion_mode_in_row_tbtfth_closed() 121 node = lxb_html_tree_element_in_scope(tree, LXB_TAG_TR, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_row_tbtfth_closed() [all …]
|
/PHP-8.2/ext/tidy/tests/ |
H A D | 036.phpt | 9 $node = $tidy->body(); 12 $node->value = ""; 18 $node->name = ""; 24 $node->type = 1; 30 $node->line = 1; 36 $node->column = 1; 42 $node->proprietary = true; 48 $node->id = null; 54 $node->attribute = []; 60 $node->child = [];
|
/PHP-8.2/ext/standard/tests/serialize/ |
H A D | bug78438.phpt | 70 $node = array_shift($nodes); 71 foreach ($node->childs as $node) { 72 $nodes[] = $node; 86 > Unserialized total node count was 1, expected 1: CORRECT! 91 > Unserialized total node count was 4, expected 4: CORRECT! 96 > Unserialized total node count was 13, expected 13: CORRECT! 101 > Unserialized total node count was 40, expected 40: CORRECT! 106 > Unserialized total node count was 121, expected 121: CORRECT! 111 > Unserialized total node count was 364, expected 364: CORRECT! 116 > Unserialized total node count was 1093, expected 1093: CORRECT! [all …]
|
/PHP-8.2/Zend/ |
H A D | zend_generators.c | 182 if (node->children == 1) { in zend_generator_remove_child() 183 node->child.single = NULL; in zend_generator_remove_child() 187 if (node->children == 2) { in zend_generator_remove_child() 197 node->children--; in zend_generator_remove_child() 214 generator->node.ptr.root->node.ptr.leaf = NULL; in clear_link_to_root() 441 while (generator->node.parent->node.parent) { in zend_generator_check_placeholder_frame() 480 zend_generator_node *node = &generator->node; in zend_generator_add_child() local 489 (zend_ulong) node->child.single, node->child.single); in zend_generator_add_child() 490 node->child.ht = ht; in zend_generator_add_child() 496 ++node->children; in zend_generator_add_child() [all …]
|
/PHP-8.2/ext/dom/lexbor/patches/ |
H A D | 0001-Patch-out-CSS-parser.patch | 32 lxb_html_document_style_cb(lxb_dom_node_t *node, 60 if (doc->node.owner_document == doc) { 161 lxb_html_style_node_t *node; 166 return (node != NULL) ? node->entry.value : NULL; 175 const lxb_html_style_node_t *node; 181 return node->entry.value; 208 const lxb_html_style_node_t *node; 211 declr = node->entry.value; 255 lxb_html_style_node_t *node; 259 if (node != NULL) { [all …]
|
/PHP-8.2/ext/simplexml/ |
H A D | php_simplexml_exports.h | 30 if ((__s)->node && (__s)->node->node) { \ 31 __n = (__s)->node->node; \
|
/PHP-8.2/ext/spl/tests/ |
H A D | bug54971.phpt | 10 <node>val1</node> 11 <node>val2</node> 20 $items = $xpath->query('//node');
|