Skip to content

findAll

Finds every descendant matching a selector.

Import:

import 'obsidian-test-mocks/setup';

Signature:

function findAll(this: HTMLElement, selector: string): HTMLElement[]

Parameters:

Parameter Type Description
this HTMLElement
selector string The CSS selector to match.

Returns: HTMLElement[] — The matching elements, in document order.