--TEST-- Test reading Element::$innerHTML on HTML documents --EXTENSIONS-- dom --FILE--
Hello, World!
'); var_dump($dom->getElementsByTagName('body')[0]->innerHTML); var_dump($dom->getElementsByTagName('head')[0]->innerHTML); var_dump($dom->getElementsByTagName('html')[0]->innerHTML); var_dump($dom->getElementsByTagName('div')[0]->innerHTML); var_dump($dom->getElementsByTagName('p')[0]->innerHTML); ?> --EXPECT-- string(31) "Hello, World!
" string(19) "Hello, World!
" string(0) "" string(13) "Hello, World!"