Skip to main content

Node

The node element extends the one from Domhandler to add some extra properties (https://domhandler.js.org/classes/Node.html)

Hierarchy

Index

Constructors

externalconstructor

  • new Node(type: Root | Script | Style | Tag | CDATA, children: Node[]): Node
  • Parameters

    • externaltype: Root | Script | Style | Tag | CDATA

      Type of the node.

    • externalchildren: Node[]

      Children of the node. Only certain node types can have children.

    Returns Node

Properties

children

children: Node[] = []

close

close: undefined | CharValue

loc

loc: Range

open

open: CharValue

parent

parent: null | NodeWithChildren = null