Home
last modified time | relevance | path

Searched refs:firstElementChild (Results 1 – 25 of 65) sorted by relevance

123

/php-src/ext/dom/tests/gh11830/
H A Dtype_variation.phpt16 $testElement = $doc->documentElement->firstElementChild->nextElementSibling->firstElementChild;
19 $doc->documentElement->firstElementChild->prepend($testElement, 0);
25 $doc->documentElement->firstElementChild->append($testElement, true);
31 $doc->documentElement->firstElementChild->before($testElement, null);
37 $doc->documentElement->firstElementChild->after($testElement, new stdClass);
43 $doc->documentElement->firstElementChild->replaceWith($testElement, []);
H A Dattribute_variation.phpt16 $doc->documentElement->firstElementChild->prepend($doc->documentElement->attributes[0]);
22 $doc->documentElement->firstElementChild->append($doc->documentElement->attributes[0]);
28 $doc->documentElement->firstElementChild->before($doc->documentElement->attributes[0]);
34 $doc->documentElement->firstElementChild->after($doc->documentElement->attributes[0]);
40 $doc->documentElement->firstElementChild->replaceWith($doc->documentElement->attributes[0]);
H A Ddocument_variation.phpt25 $testElement = $doc->documentElement->firstElementChild->nextElementSibling->firstElementChild;
28 $doc->documentElement->firstElementChild->$method($testElement, $otherElement);
H A Dhierarchy_variation.phpt18 $alone = $container->firstElementChild;
19 $testElement = $alone->nextElementSibling->firstElementChild;
/php-src/ext/dom/tests/
H A DDOMNode_contains.phpt48 var_dump($main->contains($main->firstElementChild));
49 var_dump($main->contains($div->firstElementChild));
50 var_dump($div->contains($div->firstElementChild));
51 var_dump($main->contains($main->firstElementChild->firstChild));
58 var_dump($main->firstElementChild->contains($main));
61 var_dump($main->contains($head->firstElementChild));
62 var_dump($div->contains($main->firstElementChild));
63 var_dump($div->contains($main->firstElementChild->nextElementSibling));
H A DDOM4_ParentNode.phpt13 print_node($dom->firstElementChild);
19 print_node($element->firstElementChild);
22 var_dump($element->lastElementChild->firstElementChild);
H A DreplaceWith_non_viable_next_sibling.phpt18 $child = $container->firstElementChild;
19 $alone = $child->firstElementChild;
H A Dxpath_context_node.phpt21 foreach ($xpath->query("p", $dom->documentElement->firstElementChild->nextElementSibling) as $p) {
25 var_dump($xpath->evaluate("count(p)", $dom->documentElement->firstElementChild->nextElementSibling)…
H A DDOMElement_toggleAttribute.phpt66 var_dump($dom->documentElement->firstElementChild->toggleAttribute('foo:test'));
67 var_dump($dom->documentElement->firstElementChild->toggleAttribute('doesnotexist:test'));
68 var_dump($dom->documentElement->firstElementChild->toggleAttribute('doesnotexist:test2', false));
74 var_dump($dom->documentElement->firstElementChild->getAttributeNode('foo:test')->namespaceURI);
76 var_dump($dom->documentElement->firstElementChild->getAttributeNode('doesnotexist:test')->namespace…
80 var_dump($dom->documentElement->firstElementChild->toggleAttribute('foo:test'));
81 var_dump($dom->documentElement->firstElementChild->toggleAttribute('doesnotexist:test'));
82 var_dump($dom->documentElement->firstElementChild->toggleAttribute('doesnotexist:test2', true));
83 var_dump($dom->documentElement->firstElementChild->toggleAttribute('doesnotexist:test3', false));
H A Dbug70359.phpt27 $spaceNode = $dom->documentElement->firstElementChild->getAttributeNode('myattrib');
31 $dom->documentElement->firstElementChild->remove();
43 $spaceNode = $dom->documentElement->firstElementChild->getAttributeNode('xmlns:xsi');
46 $dom->documentElement->firstElementChild->remove();
H A DDOM4_ParentNode_Fragment.phpt19 print_node($fragment->firstElementChild);
22 var_dump($fragment->lastElementChild->firstElementChild);
H A DDOM4_DOMNode_ElementSiblings.phpt13 print_node($element->firstElementChild->nextElementSibling);
H A DDOM4_DOMNode_after.phpt12 $element = $dom->documentElement->firstElementChild;
H A DDOM4_DOMNode_before.phpt12 $element = $dom->documentElement->firstElementChild;
H A Dbug80602_3.phpt35 ["firstElementChild"]=>
92 ["firstElementChild"]=>
/php-src/ext/dom/tests/delayed_freeing/
H A Dgh9628_1.phpt20 $outer_span = $doc->documentElement->firstElementChild;
21 $inner_span = $outer_span->firstElementChild->firstElementChild;
25 $outer_span->firstElementChild->remove();
/php-src/ext/dom/tests/modern/common/
H A Dnamespace_sxe_interaction.phpt15 $dom->documentElement->firstElementChild->appendChild($dom->createElementNS('urn:c', 'c:child'));
18 var_dump($dom->documentElement->firstElementChild->firstElementChild->lookupNamespaceURI('c'));
20 var_dump($dom->documentElement->firstElementChild->firstElementChild->lookupNamespaceURI('b'));
22 var_dump($dom->documentElement->firstElementChild->firstElementChild->lookupNamespaceURI('a'));
H A Dtemplate_no_default_ns.phpt19 var_dump($template->firstElementChild->tagName);
H A Dtemplate_nested.phpt17 $template = $dom->body->firstElementChild;
/php-src/ext/dom/tests/compareDocumentPosition/
H A Dattribute_child_order.phpt24 $before = $dom->documentElement->firstElementChild;
26 $foo = $outer->firstElementChild;
27 $bar = $foo->nextElementSibling->firstElementChild->firstElementChild;
H A Dcontains_attribute_longer_descendent.phpt19 $p = $container->firstElementChild->firstElementChild;
H A Dattribute_order_different_element.phpt17 $attrs1 = $dom->documentElement->firstElementChild->attributes;
18 $attrs2 = $dom->documentElement->firstElementChild->nextElementSibling->attributes;
/php-src/ext/dom/tests/modern/html/serializer/
H A DHTMLDocument_serialize_ns_imported_06.phpt9 $xml->documentElement->firstElementChild->appendChild($xml->createElementNS('some:ns2', 'child'));
16 $p = $html->documentElement->firstElementChild->nextElementSibling->firstElementChild;
17 $p->appendChild($html->adoptNode($xml->documentElement->firstElementChild->cloneNode(true)));
/php-src/ext/dom/tests/modern/spec/
H A Dbug47847.phpt17 $imported = $aDOM->importNode($fromdom->documentElement->firstElementChild, true);
22 var_dump($aDOM->documentElement->firstElementChild->prefix);
H A Dclone_conflicting_namespace_prefix.phpt21 $dom->documentElement->firstElementChild->setAttributeNS("urn:y", "a:foo", "bar");
25 $clone = clone $dom->documentElement->firstElementChild;

Completed in 32 milliseconds

123