Function nextElementSibling

  • Returns the next element sibling of a node.

    Parameters

    • elem: AnyNode

      The element to get the next sibling of.

    Returns Element | null

    elem's next sibling that is a tag, or null if there is no next sibling.