Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
}
var Text: {
prototype: Text;
new (data?: string): Text;
}
;

§Extends

§Properties

§
readonly wholeText: string
[src]

Returns the combined data of all direct Text node siblings.

§Methods

§
splitText(offset: number): Text
[src]

Splits data at the given offset and returns the remainder as Text node.