qS | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Match the first element using a CSS selector

    The starting node or selector

    The selector to match if the starting node was specified

    The first matching element or null

    • Type Parameters

      • E extends Element = HTMLElement

      Parameters

      • startnode: QuerySelectorAble
      • selector: string

      Returns null | E

    • Type Parameters

      • E extends Element = HTMLElement

      Parameters

      • selector: string

      Returns null | E