Interface ElementMatchesOptions

Options for elementMatchesFilter.

interface ElementMatchesOptions {
    excludeClasses?: Iterable<string>;
    excludeIds?: Iterable<string>;
    excludeSelector?: string;
    includeClasses?: Iterable<string>;
    includeIds?: Iterable<string>;
    predicate?: (el: Element) => boolean;
    selector?: string;
}
Hierarchy
Index
excludeClasses?: Iterable<string>

Iterable list of CSS classes which disqualify an element.

excludeIds?: Iterable<string>

Iterable list of IDs which disqualify an element.

excludeSelector?: string

CSS selector which disqualifies an element if matched.

includeClasses?: Iterable<string>

Iterable list of CSS classes an element must contain to be accepted.

includeIds?: Iterable<string>

Iterable list of IDs an element must have to be accepted.

predicate?: (el: Element) => boolean

Custom predicate; must return true for an element to be accepted.

selector?: string

CSS selector an ancestor must match to be accepted.