Skip to main content

Comment

Comments within the document.

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

Hierarchy

Index

Constructors

constructor

  • Parameters

    • data: string

    Returns Comment

Properties

children

children: Node[] = []

close

close: undefined | CharValue

data

data: string

loc

loc: Range

open

open: CharValue

parent

parent: null | NodeWithChildren = null

Accessors

nodeValue

  • get nodeValue(): string
  • set nodeValue(data: string): void
  • Returns string

  • Parameters

    • data: string

    Returns void