Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/lib.dom.ts>CharacterData

💧EventEmitter's typesafe replacement
Go to Latest
interface CharacterData
import { type CharacterData } from "https://deno.land/x/evt@v2.4.19/lib/types/lib.dom.ts";

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