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

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

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CharacterData
implements Node, ChildNode, NonDocumentTypeChildNode
import { type dom } from "https://deno.land/x/evt@v2.4.16/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