domutils
    Preparing search index...

    Function getElementsByClassName

    • Returns all nodes with the supplied className.

      Parameters

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

        Class 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 className.