--TEST-- Test 5: HTML Test --SKIPIF-- --FILE-- loadHTMLFile(dirname(__FILE__)."/test.html"); print "--- save as XML\n"; print adjustDoctype($dom->saveXML()); print "--- save as HTML\n"; print adjustDoctype($dom->saveHTML()); function adjustDoctype($xml) { return str_replace(array("DOCTYPE HTML",'

','

'),array("DOCTYPE html",'',''),$xml); } --EXPECT-- --- save as XML Hello world This is a not well-formed
html files with undeclared entities  --- save as HTML Hello world This is a not well-formed
html files with undeclared entities