function nextElementSibling(elem) {
    var _a;
    var next = elem.next;
    while (next !== null && !(0, domhandler_1.isTag)(next))
        (_a = next, next = _a.next);
    return next;
}
/**
 * Returns the next element sibling of a node.
 *
 * @category Traversal
 * @param elem The element to get the next sibling of.
 * @returns `elem`'s next sibling that is a tag.
 */
Returns the next element sibling of a node.
@category Traversal
@param elem The element to get the next sibling of.
@returns `elem`'s next sibling that is a tag.
Returns the next element sibling of a node . @category Traversal @param elem The element to get the next sibling of . @returns ` elem ` ' s next sibling that is a tag .
function nextElementSibling(elem) {
    var _a;
    var next = elem.next;
    while (next !== null && !(0, domhandler_1.isTag)(next))
        (_a = next, next = _a.next);
    return next;
}
function nextElementSibling ( elem ) { var _a ; var next = elem . next ; while ( next !== null && ! ( 0 , domhandler_1 . isTag ) ( next ) ) ( _a = next , next = _a . next ) ; return next ; }
Returns the next element sibling of a node.
Returns the next element sibling of a node .