@wopjs/dom - v0.1.3
    Preparing search index...

    Function querySelector

    • Returns the first element that is a descendant of node that matches selectors.

      Type Parameters

      • K extends keyof HTMLElementTagNameMap

      Parameters

      • selectors: K
      • OptionalparentNode: ParentNode

      Returns null | HTMLElementTagNameMap[K]

    • Returns the first element that is a descendant of node that matches selectors.

      Type Parameters

      • K extends keyof SVGElementTagNameMap

      Parameters

      • selectors: K
      • OptionalparentNode: ParentNode

      Returns null | SVGElementTagNameMap[K]

    • Returns the first element that is a descendant of node that matches selectors.

      Type Parameters

      • E extends Element = Element

      Parameters

      • selectors: string
      • OptionalparentNode: ParentNode

      Returns null | E