Home
last modified time | relevance | path

Searched refs:createElementNS (Results 1 – 25 of 74) sorted by relevance

123

/php-src/ext/dom/tests/modern/spec/
H A DElement_tagName.phpt11 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 DNode_nodeName.phpt18 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 DHTMLDocument_getElementsByTagName.phpt14 $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 DXMLDocument_getElementsByTagName.phpt14 $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 DDocument_createElementNS.phpt2 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 Dcreate_element_util.inc8 function createElementNS($doc, $ns, $name, ?string $value = null) {
9 $element = $doc->createElementNS($ns, $name);
H A Dserialize_xml_namespace_on_elements.phpt9 $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 DDocument_getElementsByTagNameNS.phpt23 $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 Ddefault_namespace_move.phpt9 $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 Ddom_create_element.phpt47 $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 Dgh11500.phpt2 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 Dreconcile_reused_namespace.phpt9 $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 DDOM4_DOMNode_before_ns.phpt12 $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 DDOM4_DOMNode_after_ns.phpt12 $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 Dgh12455.phpt9 $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 Ddomxpath.phpt46 $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 DDOM4_DOMNode_append_ns.phpt12 $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 DDOM4_DOMNode_prepend_ns.phpt12 $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 DHTMLDocument_serialize_element_ns.phpt12 $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 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…
H A DDocument_head.phpt20 $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 DDocument_body_setter.phpt16 $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 DDocument_body_setter_errors.phpt24 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 Dnamespace_definition_crash.phpt9 $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 DElement_renaming_html_ns_01.phpt9 $el = $dom->createElementNS("http://www.w3.org/1999/xhtml", "foo:bar");
14 $el = $dom->createElementNS("http://www.w3.org/1999/xhtml/", "foo:bar");

Completed in 19 milliseconds

123