I'm trying to mess around with PHP5's DOM functions and have run into
something that confuses me:
<?php
$dom = new DOMDocument();
$dom->loadHTML('<htm l></html>');
echo $dom->childNodes->length;
?>
Why is the output 2? Shouldn't it be 1?
something that confuses me:
<?php
$dom = new DOMDocument();
$dom->loadHTML('<htm l></html>');
echo $dom->childNodes->length;
?>
Why is the output 2? Shouldn't it be 1?
Comment