src/Nodes/NodeUtility.php
public static function nextElement($node)
    {
        $next = $node;
        while ($next
            && $next->nodeType !== XML_ELEMENT_NODE
            && $next->isWhitespace()) {
            $next = $next->nextSibling;
        }

        return $next;
    }
public static function nextElement($node)
    {
        $next = $node;
        while ($next
            && $next->nodeType !== XML_ELEMENT_NODE
            && $next->isWhitespace()) {
            $next = $next->nextSibling;
        }

        return $next;
    }
public static function nextElement ( $ node ) { $ next = $ node ; while ( $ next && $ next -> nodeType !== XML_ELEMENT_NODE && $ next -> isWhitespace ( ) ) { $ next = $ next -> nextSibling ; } return $ next ; }
Imported from the Element class on league\html-to-markdown.

@param $node

@return DOMElement
Imported from the Element class on league \ html - to - markdown .