package js.html
extends Node › EventTarget
extended by Comment, ProcessingInstruction, Text
Available on js
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, '. In XML, the character sequence '--' cannot be used within a comment.">Comment, or ProcessingInstruction which aren't abstract.
Documentation CharacterData by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
data:StringIs a DOMString representing the textual data contained in this object.
read onlylength:IntReturns an unsigned long representing the size of the string contained in CharacterData.data.
read onlynextElementSibling:Elementread onlypreviousElementSibling:Elementafter(nodes:Rest<Node>):Voidafter(nodes:Rest<String>):VoidThrows:
null |
DOMError |
|---|
appendData(data:String):VoidAppends the given DOMString to the CharacterData.data string; when this method returns, data contains the concatenated DOMString.
Throws:
null |
DOMError |
|---|
before(nodes:Rest<Node>):Voidbefore(nodes:Rest<String>):VoidThrows:
null |
DOMError |
|---|
deleteData(offset:Int, count:Int):VoidRemoves the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened DOMString.
Throws:
null |
DOMError |
|---|
insertData(offset:Int, data:String):VoidInserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified DOMString.
Throws:
null |
DOMError |
|---|
remove():VoidreplaceData(offset:Int, count:Int, data:String):VoidReplaces the specified amount of characters, starting at the specified offset, with the specified DOMString; when this method returns, data contains the modified DOMString.
Throws:
null |
DOMError |
|---|
replaceWith(nodes:Rest<Node>):VoidreplaceWith(nodes:Rest<String>):VoidThrows:
null |
DOMError |
|---|
substringData(offset:Int, count:Int):StringReturns a DOMString containing the part of CharacterData.data of the specified length and starting at the specified offset.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/CharacterData.html