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