• Returns the parent node of a given element or shadow root. This function is necessary because shadow roots have no parents but instead have hosts which may have them.

    Parameters

    • node: Element | ShadowRoot

    Returns Element

    Example