Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>Text

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface Text
implements CharacterData, Slotable
import { type Text } from "https://deno.land/x/windmill@v1.345.2/node_modules/evt/lib/types/lib.dom.d.ts";

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.

Properties

readonly
assignedSlot: HTMLSlotElement | null
readonly
wholeText: string

Returns the combined data of all direct Text node siblings.

Methods

splitText(offset: number): Text

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