Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getDocumentElement

Gets a reference to the root node of the document based on the given target.

function getDocumentElement(target?:
| Element
| Node
| Window
| Document
| null
): HTMLElement;
§
getDocumentElement(target?: Element | Node | Window | Document | null): HTMLElement
[src]

§Parameters

§
target?: Element | Node | Window | Document | null optional
[src]

§Return Type

§
HTMLElement
[src]