as <code>nodeLenght()</code> is for textNodes and elements node, <code>isEmptyNode()</code> is for both too