Skip to content

findAll

Finds every descendant matching a selector.

Import:

import 'obsidian-test-mocks/setup';

Signature:

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

Parameters:

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

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