Node
This object will be used as the prototype for Nodes when creating a DOM-Level-1-compliant structure.
class Node { }
constructor(type: ElementType);
endIndex: number | null;
next: Node | null;
get nodeType(): number;
parent: NodeWithChildren | null;
prev: Node | null;
sourceCodeLocation?: SourceCodeLocation | null;
startIndex: number | null;
type: ElementType;
§Properties
§
endIndex: number | null
[src]The end index of the node. Requires withEndIndices
on the handler to be `true.
§
parent: NodeWithChildren | null
[src]Parent of the node
§
parentNode: NodeWithChildren | null
[src]Same as {@link parent}. DOM spec-compatible alias.
§
sourceCodeLocation: SourceCodeLocation | null
[src]parse5
source code location info.
Available if parsing with parse5 and location info is enabled.
§
startIndex: number | null
[src]The start index of the node. Requires withStartIndices
on the handler to be `true.