Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.CharacterData
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { CharacterData } = dom;

The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.

Properties

data: string
readonly
length: number

Methods

appendData(data: string): void
deleteData(offset: number, count: number): void
insertData(offset: number, data: string): void
replaceData(
offset: number,
count: number,
data: string,
): void
substringData(offset: number, count: number): string