--TEST-- bug #65196 (Passing DOMDocumentFragment to DOMDocument::saveHTML() Produces invalid Markup) --SKIPIF-- --FILE-- 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) "
"