TextNode
Text node — analog of DOM Text / CharacterData.
Members
Section titled “Members”Extends AlloyNode
| _nl | number | 1 if data contains a newline, 0 if not, -1 if not yet computed. |
| _w | number | Display width (Prettier-compatible). Lazily filled on first read. |
| constructor | (data: string) | Constructs a new instance of the TextNode class |
| protected cloneShallow | () => TextNode | |
| data | string | |
| nodeType | 3 |