/php-src/ext/dom/ |
H A D | element.c | 401 xmlAddChild(attr, node); in PHP_METHOD() 635 zval *id, *node; in dom_element_set_attribute_node_common() local 722 zval *node; in dom_element_remove_attribute_node() local 1005 node->ns = NULL; in dom_remove_eliminated_ns_single_element() 1019 xmlNodePtr base = node; in dom_remove_eliminated_ns() 1020 node = node->children; in dom_remove_eliminated_ns() 1021 while (node != NULL) { in dom_remove_eliminated_ns() 1027 if (node->children) { in dom_remove_eliminated_ns() 1028 node = node->children; in dom_remove_eliminated_ns() 1033 node = php_dom_next_in_tree_order(node, base); in dom_remove_eliminated_ns() [all …]
|
H A D | xml_common.h | 61 if (UNEXPECTED(__intern->node == NULL)) { \ 66 __ptr = (__prtype)__intern->node->node; \
|
H A D | html_document.c | 343 while (node != NULL) { in dom_search_child() 344 if (node->type == XML_ELEMENT_NODE && strcmp((const char *) node->name, searching_for) == 0) { in dom_search_child() 345 return node; in dom_search_child() 347 node = node->next; in dom_search_child() 355 if (node != NULL) { in dom_place_remove_element_and_hoist_children() 356 xmlUnlinkNode(node); in dom_place_remove_element_and_hoist_children() 362 child = node->children; in dom_place_remove_element_and_hoist_children() 365 xmlFreeNode(node); in dom_place_remove_element_and_hoist_children() 1311 const xmlNode *node; in PHP_METHOD() local 1322 if (node->doc != docp) { in PHP_METHOD() [all …]
|
H A D | xml_serializer.h | 25 int dom_xml_serialize(xmlSaveCtxtPtr ctx, xmlOutputBufferPtr out, xmlNodePtr node, bool format);
|
/php-src/ext/libxml/ |
H A D | php_libxml.h | 96 xmlNodePtr node; member 102 php_libxml_node_ptr *node; member 150 PHP_LIBXML_API int php_libxml_increment_node_ptr(php_libxml_node_object *object, xmlNodePtr node, v… 158 PHP_LIBXML_API void php_libxml_node_free_list(xmlNodePtr node); 159 PHP_LIBXML_API void php_libxml_node_free_resource(xmlNodePtr node);
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_item_cache_invalidation.phpt | 2 DOMDocument node list item cache invalidation 44 $node = $elements->item($i); 45 print $node->getAttribute('i') . ' '; 47 $root->removeChild( $node );
|
H A D | not_serializable.phpt | 9 $doc->loadXML('<root><node/></root>'); 16 $node = $doc->documentElement; 18 serialize($node);
|
H A D | bug69846.phpt | 25 foreach ($dataNodes AS $node) { 26 $node = $datasetDom->importNode($node, true); 27 var_dump($node);
|
H A D | DOMNode_replaceChild_basic.phpt | 2 Replacing a child node 14 // Replaces the child node oldChild with newChild in the list of children, and 15 // returns the oldChild node.
|
H A D | DOMNode_insertBefore_error4.phpt | 6 This test checks the error message is raised when the refnode is a brand new node 24 // could be a brand new node
|
H A D | DOMDocument_getElementsByTagName_liveness.phpt | 39 foreach ($doc->getElementsByTagName('e') as $node) { 40 print $node->getAttribute('i') . ' '; 42 $root->removeChild($node);
|
H A D | DOMDocument_adoptNode.phpt | 33 echo "-- Appending the adopted node --\n"; 40 echo "-- Adopt node to the original document --\n"; 99 echo "-- Adopt a node and destroy the new document --\n"; 129 -- Appending the adopted node -- 135 -- Adopt node to the original document -- 169 -- Adopt a node and destroy the new document --
|
/php-src/ext/simplexml/tests/ |
H A D | 028.phpt | 20 foreach($xml->children() as $node) 22 traverse_xml($node, $pad.' ');
|
H A D | bug12170.phpt | 11 <bar>text node</bar> 34 string(9) "text node"
|
H A D | bug52751.phpt | 11 <bar>text node</bar> 37 string(9) "text node"
|
/php-src/ext/dom/lexbor/lexbor/selectors/ |
H A D | selectors.h | 66 (*lxb_selectors_cb_f)(lxb_dom_node_t *node, 77 lxb_dom_node_t *node; member 213 lxb_selectors_match_node(lxb_selectors_t *selectors, lxb_dom_node_t *node,
|
/php-src/ext/xmlreader/tests/ |
H A D | 003-get-errors.phpt | 24 // Find the book node 40 // Ensure that node pointer has not changed position 47 // Ensure that node pointer has not changed position 54 // Ensure that node pointer has not changed position
|
H A D | 003-move-errors.phpt | 24 // Find the book node 40 // Ensure that node pointer has not changed position 47 // Ensure that node pointer has not changed position 54 // Oddly, node pointer moves back to the element in this case
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | Node_isDefaultNamespace.phpt | 18 function dump($node) { 20 var_dump($node->isDefaultNamespace('http://www.w3.org/2000/svg')); 22 var_dump($node->isDefaultNamespace('http://www.w3.org/1999/xhtml')); 24 var_dump($node->isDefaultNamespace('http://www.w3.org/1998/Math/MathML')); 26 var_dump($node->isDefaultNamespace(''));
|
H A D | bug55294.phpt | 18 $node = $bDOM->importNode($aDOM->getElementsByTagNameNS('http://example.com/A', 'B')->item(0), true… 19 $bDOM->appendChild($node);
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | attr.h | 35 lxb_dom_node_t node; member 113 data = lxb_dom_attr_data_by_id(attr->node.owner_document->attrs, in lxb_dom_attr_local_name() 114 attr->node.local_name); in lxb_dom_attr_local_name()
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | title_element.c | 23 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_html_title_element_interface_create() local 25 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_title_element_interface_create() 26 node->type = LXB_DOM_NODE_TYPE_ELEMENT; in lxb_html_title_element_interface_create()
|
/php-src/ext/dom/tests/modern/html/parser/ |
H A D | predefined_namespaces.phpt | 32 foreach ($xpath->query("//*[name()='body']//*") as $node) { 33 echo $node->nodeName, " ", $node->namespaceURI ?? "(NONE)", "\n"; 34 foreach ($node->attributes as $attribute) {
|
/php-src/ext/dom/lexbor/patches/ |
H A D | 0001-Expose-line-and-column-information-for-use-in-PHP.patch | 7 source/lexbor/dom/interfaces/node.h | 2 ++ 17 diff --git a/source/lexbor/dom/interfaces/node.h b/source/lexbor/dom/interfaces/node.h 19 --- a/source/lexbor/dom/interfaces/node.h 20 +++ b/source/lexbor/dom/interfaces/node.h 126 + node->line = token->line; 130 lxb_dom_element_t *element = lxb_dom_interface_element(node); 148 + node->line = token->line;
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | in_template.c | 91 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_template_end_of_file() local 93 node = lxb_html_tree_open_elements_find(tree, LXB_TAG_TEMPLATE, LXB_NS_HTML, in lxb_html_tree_insertion_mode_in_template_end_of_file() 95 if (node == NULL) { in lxb_html_tree_insertion_mode_in_template_end_of_file()
|