mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
25 lines
662 B
PHP
25 lines
662 B
PHP
--TEST--
|
|
bug #65196 (Passing DOMDocumentFragment to DOMDocument::saveHTML() Produces invalid Markup)
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded("dom") or die("skip need ext/dom");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$dom = new DOMDocument();
|
|
|
|
$frag1 = $dom->createDocumentFragment();
|
|
var_dump($dom->saveHTML($frag1));
|
|
|
|
$frag2 = $dom->createDocumentFragment();
|
|
$div = $dom->createElement('div');
|
|
$div->appendChild($dom->createElement('span'));
|
|
$frag2->appendChild($div);
|
|
$frag2->appendChild($dom->createElement('div'));
|
|
$frag2->appendChild($dom->createElement('div'));
|
|
var_dump($dom->saveHTML($frag2));
|
|
?>
|
|
--EXPECT--
|
|
string(0) ""
|
|
string(46) "<div><span></span></div><div></div><div></div>"
|