Text - Web APIs | MDN
Constructor
Text()-
Returns a new
Textnode with the parameter as its textual content.
Instance properties
Inherits properties from its parents, CharacterData, Node, and EventTarget.
Text.assignedSlotRead only-
Returns a
HTMLSlotElementrepresenting the<slot>the node is inserted in. Text.wholeTextRead only-
Returns a string containing the text of all
Textnodes logically adjacent to thisNode, concatenated in document order.
Instance methods
Inherits methods from its parent, CharacterData, Node, and EventTarget.
Text.splitText-
Breaks the node into two nodes at a specified offset.
Specifications
| Specification |
|---|
| DOM # interface-text |