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

CharacterData

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.

interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
readonly ownerDocument: Document;
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;
}
var CharacterData: {
prototype: CharacterData;
new (): CharacterData;
}
;

§Extends

§Properties

§
data: string
[src]
§
readonly length: number
[src]
§
readonly ownerDocument: Document
[src]

§Methods

§
appendData(data: string): void
[src]
§
deleteData(offset: number, count: number): void
[src]
§
insertData(offset: number, data: string): void
[src]
§
replaceData(
offset: number,
count: number,
data: string,
): void
[src]
§
substringData(offset: number, count: number): string
[src]