/PHP-8.1/ext/dom/tests/ |
H A D | gh10234.phpt | 7 $document = new DOMDocument(); 13 var_dump($document->saveHTML()); 18 var_dump($document->saveHTML()); 22 var_dump($document->saveHTML()); 26 var_dump($document->saveHTML()); 30 var_dump($document->saveHTML()); 34 var_dump($document->saveHTML()); 38 var_dump($document->saveHTML()); 44 var_dump($document->saveHTML()); 48 var_dump($document->saveHTML()); [all …]
|
H A D | bug67440.phpt | 9 $document = new DOMDocument(); 17 return array($document, $fragment); 23 echo $document->saveXML(); 32 echo $document->saveXML(); 39 echo $document->saveXML(); 46 echo $document->saveXML(); 70 -- fragment to document element -- 77 -- children manually document element -- 98 -- fragment to document element -- 105 -- children manually document element -- [all …]
|
H A D | DOMCharacterData_data_basic_002.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createCDATASection('t'); 17 print $document->saveXML()."\n"; 20 print $document->saveXML()."\n";
|
H A D | DOMNode_replaceChild_error1.phpt | 7 $document = new DOMDocument(); 8 $real_parent = $document->createElement('real'); 9 $parent = $document->createElement('p'); 10 $child1 = $document->createElement('child1'); 11 $child2 = $document->createElement('child2'); 12 $child3 = $document->createElement('child3');
|
H A D | DOMNode_replaceChild_basic.phpt | 10 $document = new DOMDocument(); 11 $document->loadXML('<?xml version="1.0" encoding="utf-8"?> 16 $parent = $document->getElementsByTagName('foo')->item(0); 17 $new_child = $document->createElement('qux'); 19 echo "New child replaces old child:\n" . $document->saveXML(); 23 $parent = $document->getElementsByTagName('spam')->item(0); 25 echo "Existing child is removed from tree:\n" . $document->saveXML(); 28 $new_child = $document->getElementsByTagName('spam')->item(0); 29 $parent = $document->getElementsByTagName('foo')->item(0); 31 echo "Children are inserted in order:\n" . $document->saveXML();
|
H A D | DOMNode_removeChild_error1.phpt | 7 $document = new DOMDocument(); 8 $real_parent = $document->createElement('real'); 9 $parent = $document->createElement('p'); 10 $child1 = $document->createElement('child1'); 11 $child2 = $document->createElement('child2');
|
H A D | DOMDocumentFragment_appendXML_basic_001.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $fragment = $document->createDocumentFragment(); 18 print $document->saveXML();
|
H A D | DOMCharacterData_appendData_basic.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createElement('cdata'); 18 $cdatanode = $document->createCDATASection(''); 28 echo "\n" . $document->saveXML();
|
H A D | DOMComment_appendData_basic_Sullivan.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $comment = $document->createElement('comment'); 18 $commentnode = $document->createComment(''); 28 echo "\n" . $document->saveXML();
|
H A D | DOMText_appendData_basic.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $text = $document->createElement('text'); 18 $textnode = $document->createTextNode(''); 28 echo "\n" . $document->saveXML();
|
H A D | DOMCharacterData_substringData_basic_001.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createCDATASection('testfest');
|
H A D | DOMCharacterData_deleteData_basic_001.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $cdata = $document->createCDATASection('test');
|
H A D | DOMCharacterData_deleteData_error_002.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $cdata = $document->createCDATASection('test');
|
H A D | DOMDocumentFragment_appendXML_error_003.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $fragment = $document->createDocumentFragment();
|
H A D | DOMNode_replaceChild_error2.phpt | 7 $document = new DOMDocument(); 8 $a = $document->createElement('a'); 9 $b = $document->createElement('b'); 10 $c = $document->createElement('c');
|
H A D | DOMAttr_ownerElement_error_001.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $document->removeChild($root);
|
H A D | DOMNamedNodeMap_count.phpt | 10 $document = new DomDocument(); 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 17 $item = $document->createElement('item');
|
H A D | DomNodeList_count.phpt | 10 $document = new DomDocument(); 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 17 $item = $document->createElement('item');
|
H A D | gh11906.phpt | 20 echo "--- document output ---\n"; 25 echo "--- document output ---\n"; 32 --- document output --- 39 --- document output ---
|
H A D | DOMDocument_preserveWhiteSpace_variations.phpt | 11 echo "Load document with preserveWhiteSpace on\n"; 17 echo "\nLoad document with preserveWhiteSpace off\n"; 25 Load document with preserveWhiteSpace on 38 Load document with preserveWhiteSpace off
|
H A D | bug47530.phpt | 73 // Freeing the original document shouldn't break the other document 104 echo "-- Test document fragment with import --\n"; 106 echo "-- Test document fragment without import --\n"; 108 echo "-- Test document import --\n"; 110 echo "-- Test partial document import --\n"; 112 echo "-- Test document import with attributes --\n"; 119 -- Test document fragment with import -- 122 -- Test document fragment without import -- 127 -- Test document import -- 134 -- Test partial document import -- [all …]
|
H A D | DOMDocument_loadHTMLfile_variation2.phpt | 2 Test DOMDocument::loadHTMLFile when a not-well formed document is loaded 4 Verifies the behavior if a not-well formed document is loaded
|
/PHP-8.1/ext/xsl/ |
H A D | php_xsl.stub.php | 14 * @param DOMDocument|SimpleXMLElement $document 17 public function transformToDoc(object $document, ?string $returnClass = null): object|false {} argument 20 * @param DOMDocument|SimpleXMLElement $document 23 public function transformToUri(object $document, string $uri): int {} argument 26 * @param DOMDocument|SimpleXMLElement $document 29 public function transformToXml(object $document): string|null|false {} argument
|
/PHP-8.1/ext/dom/ |
H A D | parentnode.c | 178 newNodeObj->document = document; in dom_zvals_to_fragment() 246 if (document == NULL) { in dom_sanity_check_node_list_for_insertion() 262 php_dom_throw_error(WRONG_DOCUMENT_ERR, dom_get_strict_error(document)); in dom_sanity_check_node_list_for_insertion() 267 php_dom_throw_error(HIERARCHY_REQUEST_ERR, dom_get_strict_error(document)); in dom_sanity_check_node_list_for_insertion() 395 int stricterror = dom_get_strict_error(context->document); in dom_parent_node_after() 416 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_after() 450 int stricterror = dom_get_strict_error(context->document); in dom_parent_node_before() 471 fragment = dom_zvals_to_fragment(context->document, parentNode, nodes, nodesc); in dom_parent_node_before() 530 stricterror = dom_get_strict_error(context->document); in dom_child_node_remove() 558 int stricterror = dom_get_strict_error(context->document); in dom_child_replace_with() [all …]
|
H A D | document.c | 278 if (obj->document) { in dom_document_strict_error_checking_read() 290 if (obj->document) { in dom_document_strict_error_checking_write() 305 if (obj->document) { in dom_document_format_output_read() 316 if (obj->document) { in dom_document_format_output_write() 330 if (obj->document) { in dom_document_validate_on_parse_read() 341 if (obj->document) { in dom_document_validate_on_parse_write() 355 if (obj->document) { in dom_document_resolve_externals_read() 366 if (obj->document) { in dom_document_resolve_externals_write() 380 if (obj->document) { in dom_document_preserve_whitespace_read() 391 if (obj->document) { in dom_document_preserve_whitespace_write() [all …]
|