domutils
    Preparing search index...

    Function getElementsByTagName

    • Returns all nodes with the supplied tagName.

      Parameters

      • tagName: string | ((name: string) => boolean)

        Tag name to search for.

      • nodes: AnyNode | AnyNode[]

        Nodes to search through.

      • recurse: boolean = true

        Also consider child nodes.

      • limit: number = Infinity

        Maximum number of nodes to return.

      Returns Element[]

      All nodes with the supplied tagName.