• Behaves like querySelector but includes the root element as candidate.

    Parameters

    • root: Element

      the root element

    • selector: string

      the selector expression

    Returns Node | null