LWT JavaScript API
    Preparing search index...
    • Get an element and all its ancestors (excluding html and body).

      Parameters

      • element: HTMLElement

        Starting element

      Returns HTMLElement[]

      Array including the element and all ancestors