/php-src/ext/dom/tests/ |
H A D | bug80602.phpt | 11 $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 D | bug80602_2.phpt | 11 $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 D | DOMElement_className.phpt | 17 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 D | DOMElement_toggleAttribute.phpt | 14 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 D | DOMParentNode_empty_argument.phpt | 14 $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 D | DOMNode_hasChildNodes.phpt | 18 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 D | DOMElement_replaceChildren.phpt | 14 $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 D | DOMElement_get_or_has_attribute_ns_xmlns.phpt | 11 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 D | gh10234.phpt | 9 $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 D | bug80927.phpt | 2 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 D | DOM4_ParentNode_append.phpt | 14 $element = $dom->documentElement; 20 var_dump($dom->documentElement->childElementCount); 27 var_dump($dom->documentElement->childElementCount);
|
H A D | clone_attribute_namespace_01.phpt | 11 $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 D | DOM4_DOMNode_after.phpt | 12 $element = $dom->documentElement->firstElementChild; 13 $secondMark = $dom->documentElement->lastElementChild; 22 print_node_list_compact($dom->documentElement->childNodes);
|
H A D | DOM4_DOMNode_before.phpt | 12 $element = $dom->documentElement->firstElementChild; 13 $secondMark = $dom->documentElement->lastElementChild; 22 print_node_list_compact($dom->documentElement->childNodes);
|
H A D | DOMElement_getAttributeNames.phpt | 11 var_dump($dom->documentElement->getAttributeNames()); 12 foreach ($dom->documentElement->getAttributeNames() as $name) { 13 assert($dom->documentElement->getAttributeNode($name)->nodeName === $name);
|
H A D | bug80602_3.phpt | 10 $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 D | DOMNode_getRootNode.phpt | 11 var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom); 14 $dom->documentElement->appendChild($p); 16 $dom->documentElement->remove();
|
/php-src/ext/dom/tests/modern/extensions/ |
H A D | Element_substitutedNodeValue.phpt | 10 $dom->documentElement->substitutedNodeValue = "1"; 11 var_dump($dom->documentElement->substitutedNodeValue); 12 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements 15 $dom->documentElement->substitutedNodeValue = "<>"; 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-src/ext/dom/tests/gh11830/ |
H A D | attribute_variation.phpt | 16 $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 D | type_variation.phpt | 16 $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-src/ext/dom/tests/modern/html/parser/ |
H A D | HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt | 17 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-src/ext/dom/tests/modern/xml/ |
H A D | Element_outerHTML_writing.phpt | 9 $dom->documentElement->firstChild->outerHTML = '<x xmlns="urn:a"><p>foo</p><p xmlns="urn:x">bar</p>… 12 $dom->documentElement->firstChild->outerHTML = $dom->documentElement->firstChild->outerHTML; 13 $element = $dom->documentElement->firstChild->firstChild; 16 $dom->documentElement->firstChild->outerHTML = 'tést';
|
H A D | serialize_empty_xmlns.phpt | 10 var_dump($dom->documentElement->innerHTML); 14 $x = $dom->documentElement->firstChild; 17 var_dump($dom->documentElement->innerHTML);
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | Document_body_getter.phpt | 20 $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-src/ext/dom/tests/modern/spec/ |
H A D | Node_getRootNode.phpt | 12 var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom); 15 $dom->documentElement->appendChild($p); 17 $dom->documentElement->remove();
|