Home
last modified time | relevance | path

Searched refs:dom (Results 1 – 25 of 923) sorted by relevance

12345678910>>...37

/php-src/ext/dom/tests/
H A DDOMParentNode_empty_argument.phpt4 dom
7 $dom = new DOMDocument();
22 echo $dom->saveXML();
25 echo $dom->saveXML();
28 echo $dom->saveXML();
44 $dom->append();
45 $dom->prepend();
46 echo $dom->saveXML(), "\n";
51 $dom->appendChild($cdata);
57 echo $dom->saveXML(), "\n";
[all …]
H A DDOMElement_replaceChildren.phpt4 dom
8 $dom = new DOMDocument();
14 $dom->documentElement->replaceChildren($dom->documentElement);
20 $dom->documentElement->firstElementChild->replaceChildren($dom->documentElement);
27 $dom->documentElement->replaceChildren('foo', $dom->createElement('p'), 'bar');
28 echo $dom->saveXML();
37 echo $dom->saveXML();
43 var_dump($dom->saveXML($fragment));
52 $dom->replaceChildren($dom->documentElement);
53 echo $dom->saveXML();
[all …]
H A DDOMElement_className.phpt4 dom
14 $dom = new DOMDocument();
15 $dom->loadXML('<html/>');
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 = "é";
24 $dom->documentElement->className = "\0";
26 $dom->documentElement->className = 12345;
[all …]
H A Dbug80927.phpt4 dom
9 $dom = new DOMDocument();
10 $dom->appendChild($dom->createElement("html"));
12 $dom->removeChild($dom->documentElement);
14 echo $dom->saveXML();
26 $dom = new DOMDocument();
27 $dom->appendChild($dom->createElement("html"));
30 $foo = $dom->appendChild($dom->createElement('foo'));
40 echo $dom->saveXML();
48 $dom->appendChild($dom->createElement('html'));
[all …]
H A Dfragments_multiple_nodes_DOMParentNode.phpt4 dom
8 $dom = new DOMDocument();
11 $container = $dom->documentElement->firstElementChild;
13 $fragment = $dom->createDocumentFragment();
14 $fragment->appendChild($dom->createElement('p', '1'));
17 echo $dom->saveXML();
19 $dom->documentElement->append('foo');
20 echo $dom->saveXML();
22 $fragment = $dom->createDocumentFragment();
25 $dom->documentElement->prepend($fragment);
[all …]
H A Dbug38474.phpt4 dom
16 $dom = new DomDocument();
17 $dom->loadXML($xml);
18 echo $dom->firstChild->getAttribute('type')."\n";
21 $dom->firstChild->setAttribute('pre:type', 'bar2');
22 $dom->firstChild->setAttribute('type', 'foo2');
26 echo $dom->firstChild->getAttribute('type')."\n";
30 $dom->firstChild->removeAttribute('pre:type');
31 $dom->firstChild->removeAttribute('type');
33 echo $dom->firstChild->getAttribute('type')."\n";
[all …]
H A DDOMNode_getRootNode.phpt4 dom
8 $dom = new DOMDocument();
9 $dom->loadXML('<?xml version="1.0"?><html><body/></html>');
11 var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom);
12 $p = $dom->createElement('p');
14 $dom->documentElement->appendChild($p);
15 var_dump($p->getRootNode() === $dom);
16 $dom->documentElement->remove();
19 $fragment = $dom->createDocumentFragment();
21 $div = $fragment->appendChild($dom->createElement('div'));
H A DDOMNode_normalize_advanced.phpt4 dom
8 $dom = new DOMDocument;
9 $root = $dom->appendChild($dom->createElement("root"));
10 $child1 = $root->appendChild($dom->createElement("child1"));
11 $child2 = $root->appendChild($dom->createElement("child2"));
13 $child1->appendChild($dom->createTextNode("abc"));
14 $child1->appendChild($dom->createTextNode(""));
15 $child1->appendChild($dom->createTextNode("def"));
17 $child2->appendChild($dom->createTextNode(""));
20 echo $dom->saveXML();
H A Dbug65196.phpt4 dom
7 $dom = new DOMDocument();
9 $frag1 = $dom->createDocumentFragment();
10 var_dump($dom->saveHTML($frag1));
12 $frag2 = $dom->createDocumentFragment();
13 $div = $dom->createElement('div');
14 $div->appendChild($dom->createElement('span'));
16 $frag2->appendChild($dom->createElement('div'));
17 $frag2->appendChild($dom->createElement('div'));
18 var_dump($dom->saveHTML($frag2));
/php-src/ext/dom/tests/modern/html/serializer/
H A DHTMLDocument_serialize_roots.phpt4 dom
9 $dom = Dom\XMLDocument::createEmpty();
10 $cdata = $dom->createCDATASection("cdata");
12 $dom = Dom\HTMLDocument::createEmpty();
13 $container = $dom->appendChild($dom->createElement("container"));
21 var_dump($dom->saveHtml($comment));
22 var_dump($dom->saveHtml($cdata));
23 var_dump($dom->saveHtml($emptyElement));
24 var_dump($dom->saveHtml($text));
25 var_dump($dom->saveHtml($pi));
[all …]
H A Dlegacy_null_content.phpt4 dom
7 $dom = Dom\HTMLDocument::createEmpty();
8 $root = $dom->appendChild($dom->createElement('html'));
10 $root->appendChild($dom->importLegacyNode(new DOMText));
11 $root->appendChild($dom->importLegacyNode(new DOMComment));
12 $root->appendChild($dom->importLegacyNode(new DOMProcessingInstruction('target')));
13 $root->appendChild($dom->importLegacyNode(new DOMCdataSection('')));
15 echo $dom->saveHTML(), "\n";
16 echo $dom->documentElement->innerHTML, "\n";
/php-src/ext/dom/tests/modern/html/interactions/
H A DDocument_body_getter.phpt4 dom
11 var_dump($dom->body?->nodeName);
15 $dom->body->remove();
16 var_dump($dom->body?->nodeName);
20 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "body"));
21 var_dump($dom->body?->nodeName);
26 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "frameset"));
27 var_dump($dom->body?->nodeName);
33 var_dump($dom->body?->nodeName);
39 var_dump($dom->body?->nodeName);
[all …]
H A DDocument_head.phpt4 dom
11 var_dump($dom->head?->nodeName);
15 $dom->head->remove();
16 var_dump($dom->head?->nodeName);
20 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "head"));
21 var_dump($dom->head?->nodeName);
27 var_dump($dom->head?->nodeName);
33 var_dump($dom->head?->nodeName);
39 var_dump($dom->head?->nodeName);
41 var_dump($dom->head?->nodeName);
[all …]
H A DDocument_body_setter.phpt4 dom
10 $dom->body = $dom->body;
11 var_dump($dom->body?->nodeName);
15 $dom->body->remove();
16 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
17 var_dump($dom->body?->nodeName);
21 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
22 var_dump($dom->body?->nodeName);
26 $old = $dom->body;
27 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body");
[all …]
H A DHTMLDocument_getElementsByTagName.phpt4 dom
8 $dom = Dom\HTMLDocument::createFromString(<<<HTML
29 var_dump($dom->getElementsByTagName("p")[0]?->nodeName);
30 var_dump($dom->getElementsByTagName("math")[0]?->nodeName);
31 var_dump($dom->getElementsByTagName("mtable")[0]?->nodeName);
32 var_dump($dom->getElementsByTagName("svg")[0]?->nodeName);
33 var_dump($dom->getElementsByTagName("circle")[0]?->nodeName);
37 var_dump($dom->getElementsByTagNameNS("*", "p")[0]?->nodeName);
38 var_dump($dom->getElementsByTagNameNS("*", "math")[0]?->nodeName);
39 var_dump($dom->getElementsByTagNameNS("*", "mtable")[0]?->nodeName);
[all …]
/php-src/ext/dom/tests/modern/common/
H A DDocument_title_setter.phpt4 dom
17 $dom->title = "";
19 $dom->title = "test";
23 $dom->title = "test";
28 $dom->title = "test";
31 $dom->title = "test2";
37 $dom->title = "test";
41 $dom->title = "test";
45 $dom->title = "test";
49 $dom->title = "test";
[all …]
H A DDocument_title_getter.phpt4 dom
11 var_dump($dom->title);
14 var_dump($dom->title);
17 var_dump($dom->title);
20 var_dump($dom->title);
23 var_dump($dom->title);
26 var_dump($dom->title);
29 var_dump($dom->title);
32 var_dump($dom->title);
35 var_dump($dom->title);
[all …]
/php-src/ext/dom/tests/modern/spec/
H A DXMLDocument_getElementsByTagName.phpt4 dom
11 $dom = Dom\XMLDocument::createEmpty();
12 $container = $dom->appendChild(createElement($dom, "container"));
13 $container->appendChild(createElement($dom, "HTML", "1"));
23 dumpNodeList($dom->getElementsByTagName("HTml"));
24 dumpNodeList($dom->getElementsByTagName("htML"));
25 dumpNodeList($dom->getElementsByTagName("html"));
26 dumpNodeList($dom->getElementsByTagName("HTML"));
27 dumpNodeList($dom->getElementsByTagName("foo:html"));
28 dumpNodeList($dom->getElementsByTagName("foo:HTML"));
[all …]
H A DdocumentURI_URL.phpt4 dom
9 var_dump($dom->documentURI);
10 var_dump($dom->URL);
13 $dom->URL = NULL;
14 var_dump($dom->documentURI);
15 var_dump($dom->URL);
20 $dom->URL = "";
21 var_dump($dom->documentURI);
22 var_dump($dom->URL);
25 var_dump($dom->documentURI);
[all …]
H A DNode_nodeName.phpt4 dom
10 $dom = Dom\HTMLDocument::createEmpty();
12 $dom->appendChild($dom->createElement('container'));
13 var_dump($dom->createAttributeNS('http://www.w3.org/1999/xhtml', 'html')->nodeName);
18 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'html')->nodeName);
22 var_dump($dom->createElementNS('', 'html')->nodeName);
23 var_dump($dom->createElementNS(null, 'html')->nodeName);
27 $dom = Dom\XMLDocument::createEmpty();
29 $dom->appendChild($dom->createElement('container'));
39 var_dump($dom->createElementNS('', 'html')->nodeName);
[all …]
H A DHTMLDocument_getElementsByTagName.phpt4 dom
11 $dom = Dom\HTMLDocument::createEmpty();
12 $container = $dom->appendChild(createElement($dom, "container"));
13 $container->appendChild(createElement($dom, "HTML", "1"));
23 dumpNodeList($dom->getElementsByTagName("HTml"));
24 dumpNodeList($dom->getElementsByTagName("htML"));
25 dumpNodeList($dom->getElementsByTagName("html"));
26 dumpNodeList($dom->getElementsByTagName("HTML"));
30 dumpNodeList($dom->getElementsByTagName("foo:html"));
32 dumpNodeList($dom->getElementsByTagName("foo:HTML"));
[all …]
/php-src/ext/dom/tests/modern/extensions/
H A DElement_substitutedNodeValue.phpt4 dom
8 $dom = Dom\XMLDocument::createFromString('<root/>');
10 $dom->documentElement->substitutedNodeValue = "&#x31;";
11 var_dump($dom->documentElement->substitutedNodeValue);
13 echo $dom->saveXML(), "\n";
15 $dom->documentElement->substitutedNodeValue = "&lt;&gt;";
16 var_dump($dom->documentElement->substitutedNodeValue);
18 echo $dom->saveXML(), "\n";
20 $dom->documentElement->substitutedNodeValue = "";
21 var_dump($dom->documentElement->substitutedNodeValue);
[all …]
/php-src/ext/dom/
H A Dconfig.w323 ARG_WITH("dom", "DOM support", "yes");
7 ADD_EXTENSION_DEP('dom', 'libxml') &&
21 ADD_SOURCES("ext/dom/parentnode", "tree.c css_selectors.c", "dom");
22 ADD_SOURCES("ext/dom/lexbor/lexbor/ports/windows_nt/lexbor/core", "memory.c", "dom");
24 ADD_SOURCES("ext/dom/lexbor/lexbor/dom", "interface.c", "dom");
32 ADD_SOURCES("ext/dom/lexbor/lexbor/selectors-adapted", "selectors.c", "dom");
33 ADD_SOURCES("ext/dom/lexbor/lexbor/css", "state.c log.c parser.c css.c", "dom");
36 ADD_SOURCES("ext/dom/lexbor/lexbor/css/syntax/tokenizer", "error.c", "dom");
37 ADD_SOURCES("ext/dom/lexbor/lexbor/ns", "ns.c", "dom");
38 ADD_SOURCES("ext/dom/lexbor/lexbor/tag", "tag.c", "dom");
[all …]
/php-src/ext/dom/tests/modern/html/encoding/
H A DHTMLDocument_encoding_field_test.phpt4 dom
8 $dom = Dom\HTMLDocument::createEmpty();
9 var_dump($dom->charset);
10 $dom->inputEncoding = "CSeuckr";
11 var_dump($dom->characterSet);
13 $dom->charset = "nope";
17 var_dump($dom->charset);
19 var_dump($dom->characterSet);
21 $dom->charset = "";
25 var_dump($dom->inputEncoding);
[all …]
/php-src/
H A Dcodecov.yml3 - "ext/dom/lexbor/lexbor/core"
4 - "ext/dom/lexbor/lexbor/css"
5 - "ext/dom/lexbor/lexbor/dom"
6 - "ext/dom/lexbor/lexbor/encoding"
7 - "ext/dom/lexbor/lexbor/html"
8 - "ext/dom/lexbor/lexbor/ns"
9 - "ext/dom/lexbor/lexbor/ports"
10 - "ext/dom/lexbor/lexbor/tag"

Completed in 64 milliseconds

12345678910>>...37