FindOptions: {
    parent?: Target | null;
    tagName?: TagName | string;
    withAttributes?: Attributes<E> | AttributeName[] | AttributeName;
    withDataset?: Dataset | DatasetKey[] | DatasetKey;
    withSelector?: CssSelector;
}

Use to specify search criteria for finding element(s). You can find elements by selector, dataset entries, or attributes.

To search for the existence of an attribute or dataset property (not the value), set the value to null.

Type Parameters

Type declaration

  • Optionalparent?: Target | null

    Optional parent Element, EventTarget, or CSS selector.

  • OptionaltagName?: TagName | string

    Optional element tag name to limit search.

  • OptionalwithAttributes?: Attributes<E> | AttributeName[] | AttributeName

    Key/value pairs of attributes to search for.

  • OptionalwithDataset?: Dataset | DatasetKey[] | DatasetKey

    Key/value pairs of dataset entries to search for.

  • OptionalwithSelector?: CssSelector

    CSS selector search string.