fn
getActiveElement
v0.0.5Returns the active element of the document (or shadow root)
Signature
ts
declare function getActiveElement(doc?: Document | ShadowRoot): HTMLElement | null;Parameters
| Parameter | Type | Description |
|---|---|---|
doc? | Document | ShadowRoot | — |
Returns
HTMLElement | null