Why doesn\'t var_dump work with DomDocument objects, while print($dom->saveHTML()) produces output?
var_dump
print($dom->saveHTML())
Update: As of PHP 5.4.1 you can finally var_dump DOM objects. See https://gist.github.com/2499678
It's a bug: