Constructors
constructor
- new Node(type: Root | CDATA | Script | Style | Tag, children: Node[]): Node
-
Parameters
-
type: Root | CDATA | Script | Style | Tag
-
children: Node[]
Properties
Optional endIndex
endIndex: number
Optional startIndex
startIndex: number
Accessors
childNodes
- get childNodes(): Node[]
- set childNodes(children: Node[]): any
-
Returns Node[]
-
Parameters
Returns any
firstChild
- get firstChild(): Node | null
lastChild
- get lastChild(): Node | null
nextSibling
- get nextSibling(): Node | null
- set nextSibling(next: Node | null): any
-
Returns Node | null
-
Parameters
Returns any
parentNode
- get parentNode(): Node | null
- set parentNode(parent: Node | null): any
-
Returns Node | null
-
Parameters
Returns any
previousSibling
- get previousSibling(): Node | null
- set previousSibling(prev: Node | null): any
-
Returns Node | null
-
Parameters
Returns any
Methods
cloneNode
- cloneNode(recursive?: boolean): Node
-
Parameters
-
Optional recursive: boolean
A clone of the node.