--TEST-- Bug #76285 DOMDocument::formatOutput attribute sometimes ignored --EXTENSIONS-- dom --SKIPIF-- --FILE-- formatOutput = false; $html = '
test
test2
'; $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $rootNode = $dom->documentElement; var_dump($dom->saveHTML($rootNode)); var_dump($dom->saveHTML()); ?> --EXPECT-- string(56) "
test
test2
" string(57) "
test
test2
"