Home
last modified time | relevance | path

Searched refs:appendChild (Results 1 – 25 of 228) sorted by relevance

12345678910

/php-src/ext/dom/tests/
H A Dbug32615.phpt9 $frag->appendChild(new DOMElement('root'));
10 $dom->appendChild($frag);
13 $frag->appendChild(new DOMElement('first'));
14 $root->appendChild($frag);
16 $frag->appendChild(new DOMElement('second'));
17 $root->appendChild($frag);
20 $frag->appendChild($node);
32 $frag->appendChild(new DOMElement('third'));
35 $frag->appendChild(new DOMElement('start'));
44 $frag->appendChild(new DOMElement('first'));
[all …]
H A DDOMNode_normalize_advanced.phpt9 $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(""));
H A Dbug65196.phpt14 $div->appendChild($dom->createElement('span'));
15 $frag2->appendChild($div);
16 $frag2->appendChild($dom->createElement('div'));
17 $frag2->appendChild($dom->createElement('div'));
H A Ddom006.phpt11 $titleElement->appendChild($this->createTextNode($title));
13 $authorElement->appendChild($this->createTextNode($author));
17 $bookElement->appendChild($titleElement);
18 $bookElement->appendChild($authorElement);
19 $this->documentElement->appendChild($bookElement);
H A DDOMDocument_saveHTML_variant1.phpt9 $root = $doc->appendChild($root);
11 $head = $root->appendChild($head);
13 $title = $head->appendChild($title);
15 $text = $title->appendChild($text);
H A DDOMDocument_saveHTML_basic.phpt12 $root = $doc->appendChild($root);
14 $head = $root->appendChild($head);
16 $title = $head->appendChild($title);
18 $text = $title->appendChild($text);
H A Dbug80927.phpt10 $dom->appendChild($dom->createElement("html"));
27 $dom->appendChild($dom->createElement("html"));
30 $foo = $dom->appendChild($dom->createElement('foo'));
31 $foo->appendChild($dom->documentElement);
48 $dom->appendChild($dom->createElement('html'));
49 $foobar = $dom->documentElement->appendChild($dom->createElementNS('some:ns', 'foo:bar'));
50 $foobar2 = $foobar->appendChild($dom->createElementNS('some:ns', 'foo:bar2'));
53 $dom->documentElement->appendChild($foobar2);
H A DDOMDocument_saveHTMLFile_invalid_filename.phpt13 $root = $doc->appendChild($root);
15 $head = $root->appendChild($head);
17 $title = $head->appendChild($title);
19 $text = $title->appendChild($text);
H A DDOM4_ParentNode_Fragment.phpt13 $fragment->appendChild($dom->createTextNode('foo'));
14 $fragment->appendChild($dom->createElement('bar', 'FirstElement'));
15 $fragment->appendChild($dom->createElement('bar', 'LastElement'));
16 $fragment->appendChild($dom->createTextNode('bar'));
H A DDOMDocument_saveHTMLFile_formatOutput_gte_2_13.phpt18 $root = $doc->appendChild($root);
20 $head = $root->appendChild($head);
22 $title = $head->appendChild($title);
24 $text = $title->appendChild($text);
/php-src/ext/dom/tests/modern/spec/
H A DXMLDocument_getElementsByTagName.phpt12 $container = $dom->appendChild(createElement($dom, "container"));
13 $container->appendChild(createElement($dom, "HTML", "1"));
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"));
18 $container->appendChild(createElement($dom, "foo:HTML", "6"));
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 Dclone_text_nodes.phpt9 $root = $dom->appendChild($dom->createElementNS("urn:a", "a:root"));
12 $root->appendChild($dom->createTextNode("a"));
13 $root->appendChild($dom->createTextNode("foo"));
14 $root->appendChild($dom->createTextNode("b"));
15 $child = $root->appendChild($dom->createElement("child"));
16 $child->appendChild($dom->createTextNode("c"));
17 $child2 = $root->appendChild($dom->createElement("child2"));
18 $child2->appendChild($dom->createTextNode("d"));
H A DHTMLDocument_getElementsByTagName.phpt12 $container = $dom->appendChild(createElement($dom, "container"));
13 $container->appendChild(createElement($dom, "HTML", "1"));
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"));
18 $container->appendChild(createElement($dom, "foo:HTML", "6"));
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 DNode_normalize_edge_case.phpt9 $container = $doc->appendChild($doc->createElement("container"));
11 $container->appendChild($doc->createTextNode(""));
12 $middle = $container->appendChild($doc->createTextNode("foo"));
13 $container->appendChild($doc->createTextNode(""));
H A DNode_appendChild_fragment_multiple_elements.phpt2 Dom\Node::appendChild() with fragment of multiple elements
11 $fragment->appendChild($dom->createElement('foo'));
12 $fragment->appendChild($dom->createElement('bar'));
15 $dom->appendChild($fragment);
H A DNode_appendChild_invalid_parent.phpt2 Dom\Node::appendChild() invalid parent
16 $text->appendChild($dom->createElement('br'));
22 $cdata->appendChild($dom->createElement('br'));
28 $pi->appendChild($dom->createElement('br'));
34 $attr->appendChild($dom->createElement('br'));
H A DappendChild_dtd_legacy.phpt2 appendChild() with DocumentType
23 $other->appendChild($doctype);
24 $other->appendChild($doctype);
26 $other->appendChild($other->implementation->createDocumentType('doc', '', ''));
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'));
13 $dom->appendChild($child);
18 $dom2->appendChild($child);
/php-src/ext/dom/tests/delayed_freeing/
H A Ddocument_fragment.phpt9 $frag->appendChild($doc->createElementNS('some:ns', 'child', 'text content'));
10 $child = $doc->appendChild($doc->createElement('root'))->appendChild($frag);
18 $doc->appendChild($doc->createElement('container'));
19 $doc->documentElement->appendChild($doc->importNode($frag));
30 Warning: DOMNode::appendChild(): Document Fragment is empty in %s on line %d
H A Dnamespace_definition_crash_in_attribute.phpt8 $doc->appendChild($doc->createElement('container'));
9 $child = $doc->documentElement->appendChild($doc->createElementNS('some:ns', 'child'));
10 $child_attr1 = $child->appendChild($doc->createAttributeNS('some:ns2', 'hello'));
12 $child_attr2 = $child->appendChild($doc->createAttribute('hello2'));
14 $attr3 = $child->appendChild($doc->createElementNS('some:ns', 'childcontainer'))
15 ->appendChild($doc->createAttributeNS('some:ns', 'hello'));
/php-src/ext/dom/tests/modern/html/serializer/
H A Dlegacy_null_content.phpt8 $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('')));
H A DHTMLDocument_serialize_roots.phpt13 $container = $dom->appendChild($dom->createElement("container"));
14 $comment = $container->appendChild($dom->createComment("comment"));
15 $cdata = $container->appendChild($dom->importNode($cdata));
16 $emptyElement = $container->appendChild($dom->createElement("empty"));
17 $text = $container->appendChild($dom->createTextNode("text"));
18 $pi = $container->appendChild($dom->createProcessingInstruction("target", "data"));
H A DHTMLDocument_serialize_fragment.phpt10 $fragment->appendChild($dom->createElement("foo"));
11 $bar = $fragment->appendChild($dom->createElement("bar"));
12 $fragment->appendChild($dom->createElement("baz"));
13 $bar->appendChild($dom->createElement("inner"));
H A DHTMLDocument_entity_reference.phpt9 $root = $dom1->appendChild($dom1->createElement('root'));
10 $root->appendChild($dom1->createEntityReference('nbsp'));
13 $dom2->appendChild($dom2->importLegacyNode($root, true));
/php-src/ext/dom/tests/modern/xml/
H A DXMLDocument_saveXML_node.phpt9 $root = $dom->appendChild($dom->createElement("root"));
10 $child1 = $root->appendChild($dom->createElement("child1"));
11 $child2 = $root->appendChild($dom->createElement("child2"));

Completed in 70 milliseconds

12345678910