How to count children in DOMNodeList? PHP
I am trying to count children of a DOMNode. It appears to give wrong results when I use count vs traversing or the ->length property. As if text nodes are not counted. Consider <?php $html = '<p>with <a>link</a> text</p>'; $dom…