Skip to main content

Text

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

Hierarchy

Index

Constructors

constructor

  • new Text(data: string): Text
  • Parameters

    • data: string

    Returns Text

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