Document
reexport
class Document {Â Â children: Array<Node>;Â Â endIndex: null | number;Â Â next: null | Node;Â Â parent: null | NodeWithChildren;Â Â prev: null | Node;Â Â startIndex: null | number;Â Â type: ElementType;Â Â x-mode?: "no-quirks"Â Â Â Â | "quirks"Â Â Â Â | "limited-quirks";Â Â cloneNode: <Â Â Â Â T extends Node<T>Â Â >(recursive?: boolean) => T;}Defined in
@native-html/transient-render-engineThe root node of the document.
Fields#
children#
required
endIndex#
required
endIndex: null | number;The end index of the node. Requires withEndIndices on the handler to be `true.
next#
required
Next sibling
parent#
required
Parent of the node
prev#
required
Previous sibling
startIndex#
required
startIndex: null | number;The start index of the node. Requires withStartIndices on the handler to be `true.
type#
required
type: ElementType;x-mode#
optional
x-mode?: "no-quirks"Â Â | "quirks"Â Â | "limited-quirks";Methods#
cloneNode#
required
Clone this node, and optionally its children.
Parameters#
recursiveClone child nodes as well.