Function nodeHost

  • Finds a host element of the given DOM node. I.e. an enclosing element.

    Crosses shadow DOM bounds.

    Parameters

    • node: Node

      Target DOM node.

    Returns Element | undefined

    Either parent element of the given node, or undefined when not found.

Generated using TypeDoc