This bug persists even with well-formed HTML with single root element: <?php $s_htm = <<<EOT <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <body> <div class="c1"></div> <div class="c2"></div> </body> </html> EOT; ...
$node->find() finds element next to $node