@arcmantle/library
    Preparing search index...

    Function findDocumentOrShadowRoot

    • Find the closest node which is a ShadowRoot or Document by traversing the parentNode ancestry.

      Parameters

      • node: Node

      Returns DocumentOrShadowRoot