Text
The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
interface Text extends CharacterData, Slottable {
readonly wholeText: string;
splitText(offset: number): Text;
}