/php-src/ext/spl/tests/ |
H A D | bug54971.phpt | 10 <node>val1</node> 11 <node>val2</node> 20 $items = $xpath->query('//node');
|
H A D | bug65328.phpt | 37 /** @var Node $node */ 38 foreach($iterator as $node) { 39 if($node->getUid() === $uid) { 40 return $node; 55 /** @var Node $node */ 57 if($node->getUid() == $uid) { 58 $result->push($node); 197 * @param Node $node 203 $headNode = $node; 205 $headNode = $node; [all …]
|
/php-src/ext/simplexml/ |
H A D | php_simplexml_exports.h | 30 if ((__s)->node && (__s)->node->node) { \ 31 __n = (__s)->node->node; \
|
/php-src/ext/dom/tests/ |
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();
|
H A D | DOMNode_removeChild_basic.phpt | 42 echo "node $index\n"; 53 echo "node $index\n"; 60 node 4 64 node 3 72 node 2 76 node 1 84 node 0 89 node 0 97 node 1
|
H A D | bug54382.phpt | 18 echo 'namespace node does not exist.' . "\n"; 20 echo 'namespace node prefix=' . $ns2->prefix . "\n"; 21 echo 'namespace node namespaceURI=' . $ns2->namespaceURI . "\n"; 25 namespace node prefix=ns2 26 namespace node namespaceURI=http://ns2
|
H A D | DOMDocument_createProcessingInstruction_basic.phpt | 13 $node = $doc->createElement("para"); 14 $newnode = $doc->appendChild($node); 18 $node->appendChild($test_proc_inst0); 22 $node->appendChild($test_proc_inst1);
|
H A D | bug32615.phpt | 19 $node = $dom->createElement('newfirst'); 20 $frag->appendChild($node); 29 $node = $frag->appendChild(new DOMElement('fourth')); 33 $node = $root->insertBefore($frag, $node); 39 $root->replaceChild($frag, $node); 58 $node = $frag->appendChild(new DOMElement('fourth')); 63 $root->insertBefore($frag, $node);
|
H A D | gh13863.phpt | 45 foreach ($doc->documentElement->childNodes as $i => $node) { 46 var_dump($doc->documentElement->childNodes->item($i) === $node); 47 var_dump($i, $node->localName); 49 $node->remove(); 59 foreach ($doc->documentElement->childNodes as $i => $node) { 60 var_dump($doc->documentElement->childNodes->item($i) === $node); 61 var_dump($i, $node->localName); 73 foreach ($doc->documentElement->childNodes as $i => $node) { 74 var_dump($doc->documentElement->childNodes->item($i) === $node); 75 var_dump($i, $node->localName); [all …]
|
H A D | DOMDocument_liveness_caching_invalidation.phpt | 15 foreach ($doc->getElementsByTagName('e') as $node) { 19 var_dump($node->tagName, $node->getAttribute('id')); 23 foreach ($doc->getElementsByTagName('e') as $node) { 29 foreach ($doc->getElementsByTagName('e') as $node) {
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | template_element.c | 22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_html_template_element_interface_create() local 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_template_element_interface_create() 25 node->type = LXB_DOM_NODE_TYPE_ELEMENT; in lxb_html_template_element_interface_create() 27 element->content = lxb_dom_document_fragment_interface_create(node->owner_document); in lxb_html_template_element_interface_create() 32 element->content->node.ns = LXB_NS_HTML; in lxb_html_template_element_interface_create()
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | text.c | 17 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_text() local 31 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_text() local 36 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_text() 38 if (lxb_html_tree_node_is(node, LXB_TAG_SCRIPT)) { in lxb_html_tree_insertion_mode_text() 58 node = lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_text() 66 style = lxb_html_interface_style(node); in lxb_html_tree_insertion_mode_text()
|
H A D | foreign_content.c | 63 lxb_dom_node_t *node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_foreign_content_script_closed() local 65 if (node->local_name != LXB_TAG_SCRIPT || node->ns != LXB_NS_SVG) { in lxb_html_tree_insertion_mode_foreign_content_script_closed() 83 if (node->ns == LXB_NS_MATH) { in lxb_html_tree_insertion_mode_foreign_content_anything_else() 86 else if (node->ns == LXB_NS_SVG) { in lxb_html_tree_insertion_mode_foreign_content_anything_else() 98 if (node->ns == LXB_NS_SVG) { in lxb_html_tree_insertion_mode_foreign_content_anything_else() 113 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_foreign_content_anything_else() 239 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_foreign_content_all() local 272 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_foreign_content_all() 274 while (node && in lxb_html_tree_insertion_mode_foreign_content_all() 276 || lxb_html_tree_html_integration_point(node) in lxb_html_tree_insertion_mode_foreign_content_all() [all …]
|
H A D | in_table.c | 33 if (node->ns == LXB_NS_HTML && in lxb_html_tree_insertion_mode_in_table_text_open() 34 (node->local_name == LXB_TAG_TABLE in lxb_html_tree_insertion_mode_in_table_text_open() 35 || node->local_name == LXB_TAG_TBODY in lxb_html_tree_insertion_mode_in_table_text_open() 36 || node->local_name == LXB_TAG_TFOOT in lxb_html_tree_insertion_mode_in_table_text_open() 38 || node->local_name == LXB_TAG_TR)) in lxb_html_tree_insertion_mode_in_table_text_open() 202 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_table_table() local 208 if (node == NULL) { in lxb_html_tree_insertion_mode_in_table_table() 222 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_table_table_closed() local 226 if (node == NULL) { in lxb_html_tree_insertion_mode_in_table_table_closed() 310 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_table_form() local [all …]
|
H A D | in_frameset.c | 18 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_frameset() local 19 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_frameset() 21 if (node == lxb_html_tree_open_elements_first(tree)) { in lxb_html_tree_insertion_mode_in_frameset() 29 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_frameset() 32 && lxb_html_tree_node_is(node, LXB_TAG_FRAMESET) == false) in lxb_html_tree_insertion_mode_in_frameset() 98 lxb_dom_node_t *node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_frameset() local 100 if (node != lxb_html_tree_open_elements_first(tree)) { in lxb_html_tree_insertion_mode_in_frameset()
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | node.h | 22 lxb_html_node_is_void(lxb_dom_node_t *node) in lxb_html_node_is_void() argument 24 if (node->ns != LXB_NS_HTML) { in lxb_html_node_is_void() 28 switch (node->local_name) { in lxb_html_node_is_void() 60 lxb_html_node_is_void_noi(lxb_dom_node_t *node);
|
/php-src/ext/dom/ |
H A D | php_dom.h | 136 void node_list_unlink(xmlNodePtr node); 142 xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName); 149 int dom_node_is_read_only(xmlNodePtr node); 150 bool dom_node_children_valid(xmlNodePtr node); 161 bool php_dom_is_node_connected(const xmlNode *node); 226 __ptr = (__prtype)((php_libxml_node_ptr *)__intern->ptr)->node; \ 243 ZEND_ASSERT(node != NULL); in php_dom_is_cache_tag_stale_from_node() 244 php_libxml_node_ptr *_private = node->_private; in php_dom_is_cache_tag_stale_from_node() 258 php_libxml_node_ptr *_private = node->_private; in php_dom_mark_cache_tag_up_to_date_from_node() 276 ZEND_ASSERT(node != NULL); in php_dom_follow_spec_node() [all …]
|
H A D | characterdata.c | 109 xmlNodePtr node; in PHP_METHOD() local 122 cur = node->content; in PHP_METHOD() 201 xmlNodePtr node; in dom_character_data_insert_data() local 216 cur = node->content; in dom_character_data_insert_data() 241 xmlNodeSetContent(node, first); in dom_character_data_insert_data() 243 xmlNodeAddContent(node, second); in dom_character_data_insert_data() 272 xmlNodePtr node; in dom_character_data_delete_data() local 285 cur = node->content; in dom_character_data_delete_data() 315 xmlNodeSetContent(node, substring); in dom_character_data_delete_data() 344 xmlNodePtr node; in dom_character_data_replace_data() local [all …]
|
H A D | node.c | 68 node = node->parent; in php_dom_is_node_connected() 805 node = node->next; in _php_dom_insert_fragment() 1221 zval *node; in dom_node_remove_child() local 1378 zval *node; in PHP_METHOD() local 1394 zval *node; in PHP_METHOD() local 1575 zval *node; in PHP_METHOD() local 1585 zval *node; in PHP_METHOD() local 1632 node = node->next; \ 1932 node = node->parent; in dom_locate_a_namespace() 1936 node = xmlDocGetRootElement((xmlDocPtr) node); in dom_locate_a_namespace() [all …]
|
H A D | xml_document.c | 74 xmlNodePtr node = doc->children; in dom_mark_namespaces_as_attributes_too() local 75 while (node != NULL) { in dom_mark_namespaces_as_attributes_too() 76 if (node->type == XML_ELEMENT_NODE) { in dom_mark_namespaces_as_attributes_too() 77 php_dom_ns_compat_mark_attribute_list(ns_mapper, node); in dom_mark_namespaces_as_attributes_too() 79 if (node->children) { in dom_mark_namespaces_as_attributes_too() 80 node = node->children; in dom_mark_namespaces_as_attributes_too() 85 node = php_dom_next_in_tree_order(node, NULL); in dom_mark_namespaces_as_attributes_too()
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | without_contructor.phpt | 8 $node = $rc->newInstanceWithoutConstructor(); 12 var_dump($node); 19 $node->removeChild($node); 27 $doc->appendChild($doc->importNode($node));
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | attr.c | 35 lxb_dom_node_t *node = lxb_dom_interface_node(attr); in lxb_dom_attr_interface_create() local 38 node->type = LXB_DOM_NODE_TYPE_ATTRIBUTE; in lxb_dom_attr_interface_create() 55 new->node.ns = attr->node.ns; in lxb_dom_attr_interface_clone() 57 if (document == attr->node.owner_document) { in lxb_dom_attr_interface_clone() 82 if (lxb_dom_node_interface_copy(&new->node, &attr->node, true) in lxb_dom_attr_interface_clone() 141 attr->node.local_name = data->attr_id; in lxb_dom_attr_set_name() 171 attr->node.ns = ns_data->ns_id; in lxb_dom_attr_set_name_ns() 202 if (attr->node.prefix == 0) { in lxb_dom_attr_set_name_ns() 288 attr_to->node.local_name = attr_from->node.local_name; in lxb_dom_attr_clone_name_value() 297 if (first->node.local_name == second->node.local_name in lxb_dom_attr_compare() [all …]
|
H A D | document_type.c | 27 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_dom_document_type_interface_create() local 29 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_document_type_interface_create() 30 node->type = LXB_DOM_NODE_TYPE_DOCUMENT_TYPE; in lxb_dom_document_type_interface_create() 48 status = lxb_dom_node_interface_copy(&new->node, &dtype->node, false); in lxb_dom_document_type_interface_clone() 53 if (document == dtype->node.owner_document) { in lxb_dom_document_type_interface_clone() 57 data = lxb_dom_attr_data_by_id(dtype->node.owner_document->attrs, in lxb_dom_document_type_interface_clone()
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | node_list_dump.inc | 5 foreach ($nodeList as $node) { 6 echo "\t{$node->nodeName} {$node->textContent}\n";
|
/php-src/Zend/Optimizer/ |
H A D | zend_cfg.h | 103 #define CRT_CONSTANT_EX(op_array, opline, node) \ argument 105 RT_CONSTANT(opline, (node)) \ 107 CT_CONSTANT_EX(op_array, (node).constant) \ 110 #define CRT_CONSTANT(node) \ argument 111 CRT_CONSTANT_EX(op_array, opline, node)
|