/php-src/ext/dom/tests/modern/spec/ |
H A D | Element_tagName.phpt | 11 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'html')->tagName); 12 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'html')->tagName); 13 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'foo:html')->tagName); 14 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'foo:html')->tagName); 15 var_dump($dom->createElementNS('', 'html')->tagName); 16 var_dump($dom->createElementNS(null, 'html')->tagName); 21 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'html')->tagName); 22 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'html')->tagName); 23 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'foo:html')->tagName); 25 var_dump($dom->createElementNS('', 'html')->tagName); [all …]
|
H A D | Node_nodeName.phpt | 18 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'html')->nodeName); 19 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'html')->nodeName); 20 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'foo:html')->nodeName); 21 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'foo:html')->nodeName); 22 var_dump($dom->createElementNS('', 'html')->nodeName); 23 var_dump($dom->createElementNS(null, 'html')->nodeName); 35 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'html')->nodeName); 36 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml/', 'html')->nodeName); 37 var_dump($dom->createElementNS('http://www.w3.org/1999/xhtml', 'foo:html')->nodeName); 39 var_dump($dom->createElementNS('', 'html')->nodeName); [all …]
|
H A D | HTMLDocument_getElementsByTagName.phpt | 14 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "html", "2")); 15 $container->appendChild(createElementNS($dom, NULL, "html", "3")); 16 $container->appendChild(createElementNS($dom, NULL, "HTML", "4")); 17 $container->appendChild(createElementNS($dom, "urn:foo", "htML", "5")); 19 $container->appendChild(createElementNS($dom, "urn:a", "foo:HTML", "7")); // Should never match in … 20 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "bar:HTML", "8")); 21 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "bar:html", "9")); 29 // This is in contrast to createElementNS that won't lowercase. 33 …h of the following calls will match 9 because 8 isn't lowercased due to the use of createElementNS.
|
H A D | XMLDocument_getElementsByTagName.phpt | 14 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "html", "2")); 15 $container->appendChild(createElementNS($dom, NULL, "html", "3")); 16 $container->appendChild(createElementNS($dom, NULL, "HTML", "4")); 17 $container->appendChild(createElementNS($dom, "urn:foo", "htML", "5")); 19 $container->appendChild(createElementNS($dom, "urn:a", "foo:HTML", "7")); // Should never match in … 20 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "bar:HTML", "8")); 21 $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "bar:html", "9"));
|
H A D | Document_createElementNS.phpt | 2 Document::createElementNS() 16 $elements[] = createElementNS($dom, NULL, "qname", "&hello"); 17 $elements[] = createElementNS($dom, "urn:foo", "foo:bar", "&hello"); 18 $elements[] = createElementNS($dom, "urn:foo", "bar:BAR", "&hello"); 19 $elements[] = createElementNS($dom, "urn:foo", "bar:BAR", "&hello"); 20 $elements[] = createElementNS($dom, "http://www.w3.org/2000/xmlns/", "xmlns", "&hello"); 21 $elements[] = createElementNS($dom, "http://www.w3.org/XML/1998/namespace", "xml", "&hello"); 34 $dom->createElementNS($namespaceURI, $qualifiedName);
|
H A D | create_element_util.inc | 8 function createElementNS($doc, $ns, $name, ?string $value = null) { 9 $element = $doc->createElementNS($ns, $name);
|
H A D | serialize_xml_namespace_on_elements.phpt | 9 $root = $dom->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test")… 10 $root->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:child"));
|
H A D | Document_getElementsByTagNameNS.phpt | 23 $body->appendChild(createElementNS($dom, NULL, "p", "content 1")); 24 $body->appendChild(createElementNS($dom, "", "p", "content 2")); 25 $body->appendChild(createElementNS($dom, "http://www.w3.org/2000/svg", "svg:svg", "content 3"));
|
H A D | default_namespace_move.phpt | 9 $root = $dom->appendChild($dom->createElementNS('urn:a', 'foo:bar')); 10 $child = $root->appendChild($dom->createElementNS('urn:a', 'foo:baz'));
|
/php-src/ext/dom/tests/ |
H A D | dom_create_element.phpt | 47 $dom->createElementNS('http://valid.com', 'valid'); 56 $dom->createElementNS('http://valid.com', 'prefix:valid'); 65 $dom->createElementNS('http://valid.com', '-invalid'); 83 $dom->createElementNS('', 'prefix:invalid'); 101 $dom->createElementNS('http://valid.com', '-prefix:valid'); 110 $dom->createElementNS('-', 'prefix:valid'); 218 $dom->createElementNS('', 'prefix:valid'); 329 5 DOMDocument::createElementNS('http://valid.com', 'valid') 337 9 DOMDocument::createElementNS('', 'prefix:invalid') 343 12 DOMDocument::createElementNS('-', 'prefix:valid') [all …]
|
H A D | gh11500.phpt | 2 GH-11500 (Namespace reuse in createElementNS() generates wrong output) 9 $root = $dom->createElementNS($root_ns, 'root'); 12 $a1 = $dom->createElementNS('http://example.com', 'a1'); 13 $b1 = $a1->appendChild($dom->createElementNS('http://example.com', 'b1')); 16 $a2 = $dom->createElementNS('http://example.com', 'a2'); 17 $b2 = $a2->appendChild($dom->createElementNS('http://example.com', 'b2')); 31 $root = $dom->createElementNS($root_ns, 'root'); 34 $a1 = $dom->createElementNS('http://example.com', 'a1'); 35 $b1 = $a1->appendChild($dom->createElementNS('http://example.com', 'b1')); 39 $a2 = $dom->createElementNS('http://example.com', 'a2'); [all …]
|
H A D | reconcile_reused_namespace.phpt | 9 $root = $dom->createElementNS('http://www.w3.org/2000/xhtml', 'html'); 22 $element = $dom->createElementNS('http://example.com/B', 'p', 'Hello World'); 26 $element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World'); 30 $element = $dom->createElementNS('http://example.com/A', 'p', 'Hello World');
|
H A D | DOM4_DOMNode_before_ns.phpt | 12 $root = $doc->createElementNS('http://www.w3.org/2005/Atom', 'element'); 16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house'); 19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
|
H A D | DOM4_DOMNode_after_ns.phpt | 12 $root = $doc->createElementNS('http://www.w3.org/2005/Atom', 'element'); 16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house'); 19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
|
H A D | gh12455.phpt | 9 $element = $doc->createElementNS('http://test', 'a:x'); 11 $element1 = $doc->createElementNS('http://test', 'b:y'); 13 $element1->appendChild($doc->createElementNS('http://test', 'b:z'));
|
H A D | domxpath.phpt | 46 $root->appendChild($dom->createElementNS("urn::default", "testnode", 3)); 47 $root->appendChild($dom->createElementNS("urn::default", "testnode", 4)); 48 $root->appendChild($dom->createElementNS("urn::default", "testnode", 4)); 49 $root->appendChild($dom->createElementNS("urn::default", "testnode", 5));
|
H A D | DOM4_DOMNode_append_ns.phpt | 12 $root = $doc->createElementNS('http://www.w3.org/2005/Atom', 'element'); 16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
|
H A D | DOM4_DOMNode_prepend_ns.phpt | 12 $root = $doc->createElementNS('http://www.w3.org/2005/Atom', 'element'); 16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
|
/php-src/ext/dom/tests/modern/html/serializer/ |
H A D | HTMLDocument_serialize_element_ns.phpt | 12 $root->append($dom->createElementNS("http://php.net", "noprefix"), "\n"); 13 $root->append($dom->createElementNS("http://php.net", "with:prefix"), "\n"); 14 $root->append($dom->createElementNS("http://www.w3.org/1999/xhtml", "xhtml:br"), "\n"); 15 $root->append($dom->createElementNS("http://www.w3.org/2000/svg", "s:svg"), "\n"); 16 $root->append($dom->createElementNS("http://www.w3.org/1998/Math/MathML", "m:math"), "\n");
|
/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…
|
H A D | Document_head.phpt | 20 $tmp = $dom->documentElement->appendChild($dom->createElementNS("", "head")); 26 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "he… 32 $tmp = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "pr… 38 $tmp1 = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "p… 40 $tmp2 = $dom->documentElement->appendChild($dom->createElementNS("http://www.w3.org/1999/xhtml", "p…
|
H A D | Document_body_setter.phpt | 16 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body"); 21 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body"); 27 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "prefix:body"); 33 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "body");
|
H A D | Document_body_setter_errors.phpt | 24 testNormalReplace(fn ($dom) => $dom->createElementNS("http://www.w3.org/1999/xhtml", "foo")); 27 testNormalReplace(fn ($dom) => $dom->createElementNS("urn:a", "body")); 30 testNormalReplace(fn ($dom) => $dom->createElementNS("", "frameset")); 35 $dom->body = $dom->createElementNS("http://www.w3.org/1999/xhtml", "body");
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | namespace_definition_crash.phpt | 9 $child = $doc->documentElement->appendChild($doc->createElementNS('some:ns', 'child')); 10 $child_child = $child->appendChild($doc->createElementNS('some:ns', 'x'));
|
/php-src/ext/dom/tests/modern/extensions/ |
H A D | Element_renaming_html_ns_01.phpt | 9 $el = $dom->createElementNS("http://www.w3.org/1999/xhtml", "foo:bar"); 14 $el = $dom->createElementNS("http://www.w3.org/1999/xhtml/", "foo:bar");
|