Element
reexport
class Element {Â Â attribs: any;Â Â children: Array<Node>;Â Â endIndex: null | number;Â Â name: string;Â Â next: null | Node;Â Â parent: null | NodeWithChildren;Â Â prev: null | Node;Â Â startIndex: null | number;Â Â type: ElementType;Â Â x-attribsNamespace?: Record<string, string>;Â Â x-attribsPrefix?: Record<string, string>;Â Â cloneNode: <Â Â Â Â T extends Node<T>Â Â >(recursive?: boolean) => T;}Defined in
@native-html/transient-render-engineAn element within the DOM.
Fields#
attribs#
required
attribs: any;children#
required
endIndex#
required
endIndex: null | number;The end index of the node. Requires withEndIndices on the handler to be `true.
name#
required
name: string;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-attribsNamespace#
optional
x-attribsNamespace?: Record<string, string>;x-attribsPrefix#
optional
x-attribsPrefix?: Record<string, string>;Methods#
cloneNode#
required
Clone this node, and optionally its children.
Parameters#
recursiveClone child nodes as well.