Home
last modified time | relevance | path

Searched refs:documentElement (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/PHP-8.4/ext/dom/tests/
H A Dbug80602.phpt11 $target = $doc->documentElement->firstChild;
17 $target = $doc->documentElement->lastChild;
24 $target = $doc->documentElement->firstChild;
30 $target = $doc->documentElement->lastChild;
37 $target = $doc->documentElement->firstChild;
43 $target = $doc->documentElement->firstChild;
50 $target = $doc->documentElement->lastChild;
56 $target = $doc->documentElement->lastChild;
63 $target = $doc->documentElement->firstChild;
69 $target = $doc->documentElement->lastChild;
[all …]
H A Dbug80602_2.phpt11 $target = $doc->documentElement->firstChild;
17 $target = $doc->documentElement->lastChild;
24 $target = $doc->documentElement->firstChild;
30 $target = $doc->documentElement->lastChild;
37 $target = $doc->documentElement->firstChild;
43 $target = $doc->documentElement->firstChild;
50 $target = $doc->documentElement->lastChild;
56 $target = $doc->documentElement->lastChild;
63 $target = $doc->documentElement->firstChild;
69 $target = $doc->documentElement->lastChild;
[all …]
H A DDOMElement_className.phpt17 var_dump($dom->documentElement->className);
19 var_dump($dom->documentElement->className);
20 $dom->documentElement->className = "";
21 var_dump($dom->documentElement->className);
22 $dom->documentElement->className = "é";
23 var_dump($dom->documentElement->className);
24 $dom->documentElement->className = "\0";
25 var_dump($dom->documentElement->className);
26 $dom->documentElement->className = 12345;
27 var_dump($dom->documentElement->className);
[all …]
H A DDOMElement_toggleAttribute.phpt14 var_dump($html->documentElement->toggleAttribute("\0"));
21 var_dump($html->documentElement->toggleAttribute("SELECTED", false));
23 var_dump($html->documentElement->toggleAttribute("SELECTED"));
27 var_dump($html->documentElement->toggleAttribute("selected"));
34 var_dump($xml->documentElement->toggleAttribute("SELECTED"));
38 var_dump($xml->documentElement->toggleAttribute("selected"));
44 var_dump($html->documentElement->toggleAttribute("id"));
53 var_dump($dom->documentElement->toggleAttribute('xmlns'));
59 var_dump($dom->documentElement->toggleAttribute('xmlns:foo'));
65 var_dump($dom->documentElement->toggleAttribute('test:test'));
[all …]
H A DDOMParentNode_empty_argument.phpt14 $dom->documentElement->after(...$emptyFragment->childNodes);
15 $dom->documentElement->before(...$emptyFragment->childNodes);
16 $dom->documentElement->append(...$emptyFragment->childNodes);
17 $dom->documentElement->prepend(...$emptyFragment->childNodes);
18 $dom->documentElement->after();
19 $dom->documentElement->before();
20 $dom->documentElement->append();
21 $dom->documentElement->prepend();
24 $dom->documentElement->firstChild->replaceWith(...$emptyFragment->childNodes);
27 $dom->documentElement->replaceWith(...$emptyFragment->childNodes);
H A DDOMNode_hasChildNodes.phpt18 var_dump($dom->documentElement->hasChildNodes());
22 var_dump($dom->documentElement->hasChildNodes());
25 $dom->documentElement->removeChild($dom->documentElement->firstChild);
29 var_dump($dom->documentElement->hasChildNodes());
33 var_dump($dom->documentElement->hasChildNodes());
H A DDOMElement_replaceChildren.phpt14 $dom->documentElement->replaceChildren($dom->documentElement);
20 $dom->documentElement->firstElementChild->replaceChildren($dom->documentElement);
27 $dom->documentElement->replaceChildren('foo', $dom->createElement('p'), 'bar');
36 $dom->documentElement->replaceChildren($fragment1, $fragment2, $fragment3);
52 $dom->replaceChildren($dom->documentElement);
57 $dom->documentElement->replaceChildren();
H A DDOMElement_get_or_has_attribute_ns_xmlns.phpt11 var_dump($dom->documentElement->getAttributeNS('http://www.w3.org/2000/xmlns/', 'a'));
12 var_dump($dom->documentElement->getAttributeNS('http://www.w3.org/2000/xmlns/', 'b'));
13 var_dump($dom->documentElement->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'a'));
14 var_dump($dom->documentElement->hasAttributeNS('http://www.w3.org/2000/xmlns/', 'b'));
H A Dgh10234.phpt9 $attribute = $document->documentElement->getAttributeNode('attribute');
42 $document->documentElement->textContent = 'hello & world';
43 var_dump($document->documentElement->textContent);
46 $document->documentElement->textContent = '<b>hi</b>';
47 var_dump($document->documentElement->textContent);
50 $document->documentElement->textContent = 'quote "test"';
51 var_dump($document->documentElement->textContent);
54 $document->documentElement->textContent = "quote 'test'";
55 var_dump($document->documentElement->textContent);
H A Dbug80927.phpt2 Bug #80927 (Removing documentElement after creating attribute node: possible use-after-free)
12 $dom->removeChild($dom->documentElement);
31 $foo->appendChild($dom->documentElement);
36 Test2Variation::REMOVE_DOCUMENT => $dom->documentElement->remove(),
37 Test2Variation::REMOVE_CHILD => $dom->documentElement->firstElementChild->remove(),
49 $foobar = $dom->documentElement->appendChild($dom->createElementNS('some:ns', 'foo:bar'));
53 $dom->documentElement->appendChild($foobar2);
H A DDOM4_ParentNode_append.phpt14 $element = $dom->documentElement;
20 var_dump($dom->documentElement->childElementCount);
27 var_dump($dom->documentElement->childElementCount);
H A Dclone_attribute_namespace_01.phpt11 $dom->documentElement->setAttributeNs("some:ns", "foo:bar", "value");
13 $attr = $dom->documentElement->getAttributeNodeNs("some:ns", "bar");
25 $dom->documentElement->removeAttributeNs("some:ns", "bar");
27 $dom->documentElement->setAttributeNodeNs($clone);
34 $dom->documentElement->removeAttributeNs("some:ns", "bar");
35 $dom->documentElement->removeAttribute("xmlns:foo");
37 $child = $dom->documentElement->appendChild($dom->createElement("child"));
H A DDOMElement_getAttributeNames.phpt11 var_dump($dom->documentElement->getAttributeNames());
12 foreach ($dom->documentElement->getAttributeNames() as $name) {
13 assert($dom->documentElement->getAttributeNode($name)->nodeName === $name);
H A DDOM4_DOMNode_after.phpt12 $element = $dom->documentElement->firstElementChild;
13 $secondMark = $dom->documentElement->lastElementChild;
22 print_node_list_compact($dom->documentElement->childNodes);
H A DDOM4_DOMNode_before.phpt12 $element = $dom->documentElement->firstElementChild;
13 $secondMark = $dom->documentElement->lastElementChild;
22 print_node_list_compact($dom->documentElement->childNodes);
H A Dbug80602_3.phpt10 $target = $doc->documentElement->lastChild;
11 $target->before('bar', $doc->documentElement->firstChild, 'baz');
12 echo $doc->saveXML($doc->documentElement), "\n";
17 $target = $doc->documentElement->lastChild;
19 $target->after('bar', $doc->documentElement->firstChild, 'baz');
20 echo $doc->saveXML($doc->documentElement), "\n";
H A DDOMNode_getRootNode.phpt11 var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom);
14 $dom->documentElement->appendChild($p);
16 $dom->documentElement->remove();
H A Dgh12870.inc10 $d->documentElement->setAttributeNodeNS($attr);
18 var_dump($d->documentElement->namespaceURI);
21 … var_dump($attr === $d->documentElement->getAttributeNodeNS($uri, $parts[count($parts) - 1]));
/PHP-8.4/ext/dom/tests/modern/extensions/
H A DElement_substitutedNodeValue.phpt10 $dom->documentElement->substitutedNodeValue = "&#x31;";
11 var_dump($dom->documentElement->substitutedNodeValue);
12 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements
15 $dom->documentElement->substitutedNodeValue = "&lt;&gt;";
16 var_dump($dom->documentElement->substitutedNodeValue);
17 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements
20 $dom->documentElement->substitutedNodeValue = "";
21 var_dump($dom->documentElement->substitutedNodeValue);
22 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements
/PHP-8.4/ext/dom/tests/gh11830/
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 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, []);
/PHP-8.4/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt17 var_dump($dom->documentElement->namespaceURI);
18 var_dump($dom->documentElement->prefix);
24 var_dump($dom->documentElement->namespaceURI);
25 var_dump($dom->documentElement->prefix);
26 var_dump($dom->documentElement->nextSibling->namespaceURI);
27 var_dump($dom->documentElement->nextSibling->prefix);
/PHP-8.4/ext/dom/tests/modern/html/interactions/
H A DDocument_body_getter.phpt20 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "body"));
26 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "frameset"));
32 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "bo…
38 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "fr…
44 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "pr…
50 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "pr…
56 $tmp1 = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "p…
58 $tmp2 = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "p…
/PHP-8.4/ext/dom/tests/modern/xml/
H A Dserialize_empty_xmlns.phpt10 var_dump($dom->documentElement->innerHTML);
14 $x = $dom->documentElement->firstChild;
17 var_dump($dom->documentElement->innerHTML);
/PHP-8.4/ext/dom/tests/modern/spec/
H A DNode_getRootNode.phpt12 var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom);
15 $dom->documentElement->appendChild($p);
17 $dom->documentElement->remove();

Completed in 22 milliseconds

12345678910>>...12