domutils
    Preparing search index...

    Function getElementById

    • Returns the node with the supplied ID.

      Parameters

      • id: string | ((id: string) => boolean)

        The unique ID attribute value to look for.

      • nodes: AnyNode | AnyNode[]

        Nodes to search through.

      • recurse: boolean = true

        Also consider child nodes.

      Returns null | Element

      The node with the supplied ID.