/php-src/ext/dom/tests/ |
H A D | bug32615.phpt | 9 $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 D | DOMNode_normalize_advanced.phpt | 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(""));
|
H A D | bug65196.phpt | 14 $div->appendChild($dom->createElement('span')); 15 $frag2->appendChild($div); 16 $frag2->appendChild($dom->createElement('div')); 17 $frag2->appendChild($dom->createElement('div'));
|
H A D | dom006.phpt | 11 $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 D | DOMDocument_saveHTML_variant1.phpt | 9 $root = $doc->appendChild($root); 11 $head = $root->appendChild($head); 13 $title = $head->appendChild($title); 15 $text = $title->appendChild($text);
|
H A D | DOMDocument_saveHTML_basic.phpt | 12 $root = $doc->appendChild($root); 14 $head = $root->appendChild($head); 16 $title = $head->appendChild($title); 18 $text = $title->appendChild($text);
|
H A D | bug80927.phpt | 10 $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 D | DOMDocument_saveHTMLFile_invalid_filename.phpt | 13 $root = $doc->appendChild($root); 15 $head = $root->appendChild($head); 17 $title = $head->appendChild($title); 19 $text = $title->appendChild($text);
|
H A D | DOM4_ParentNode_Fragment.phpt | 13 $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 D | DOMDocument_saveHTMLFile_formatOutput_gte_2_13.phpt | 18 $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 D | XMLDocument_getElementsByTagName.phpt | 12 $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 D | clone_text_nodes.phpt | 9 $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 D | HTMLDocument_getElementsByTagName.phpt | 12 $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 D | Node_normalize_edge_case.phpt | 9 $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 D | Node_appendChild_fragment_multiple_elements.phpt | 2 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 D | Node_appendChild_invalid_parent.phpt | 2 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 D | appendChild_dtd_legacy.phpt | 2 appendChild() with DocumentType 23 $other->appendChild($doctype); 24 $other->appendChild($doctype); 26 $other->appendChild($other->implementation->createDocumentType('doc', '', ''));
|
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')); 13 $dom->appendChild($child); 18 $dom2->appendChild($child);
|
/php-src/ext/dom/tests/delayed_freeing/ |
H A D | document_fragment.phpt | 9 $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 D | namespace_definition_crash_in_attribute.phpt | 8 $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 D | legacy_null_content.phpt | 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('')));
|
H A D | HTMLDocument_serialize_roots.phpt | 13 $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 D | HTMLDocument_serialize_fragment.phpt | 10 $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 D | HTMLDocument_entity_reference.phpt | 9 $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 D | XMLDocument_saveXML_node.phpt | 9 $root = $dom->appendChild($dom->createElement("root")); 10 $child1 = $root->appendChild($dom->createElement("child1")); 11 $child2 = $root->appendChild($dom->createElement("child2"));
|