@tempots/dom

DOMContext.(constructor)

Constructs a new DOMContext instance.

Signature:

constructor(
    document: Document, 
    element: Element, 
    reference: Node | undefined, 
    providers: Providers, 
    isFirstLevel: boolean);

Parameters

Parameter

Type

Description

document

Document

The Document instance associated with this context.

element

Element

The Element instance associated with this context.

reference

Node | undefined

An optional Node instance that serves as a reference for this context.

providers

Providers

The Providers instance associated with this context.

isFirstLevel

boolean

A boolean value indicating whether this context is at the first level, meaning the outermost node in the generated DOM.