findAllSelf
Finds every element matching a selector, including the element itself.
Import:
import 'obsidian-test-mocks/setup';Signature:
function findAllSelf(this: HTMLElement, selector: string): HTMLElement[]Parameters:
| Parameter | Type | Description |
|---|---|---|
this |
HTMLElement | |
selector |
string | The CSS selector to match. |
Returns: HTMLElement[] — The element itself first when it matches, followed by the matching descendants.