Skip to content

TextNode

Text node — analog of DOM Text / CharacterData.

Extends AlloyNode

_nlnumber1 if data contains a newline, 0 if not, -1 if not yet computed.
_wnumberDisplay width (Prettier-compatible). Lazily filled on first read.
constructor(data: string)Constructs a new instance of the TextNode class
protected cloneShallow() => TextNode
datastring
nodeType3