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
, '. 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.
Instance Members
data: String
Is a DOMString
representing the textual data contained in this object.
length: Int
Returns an unsigned long
representing the size of the string contained in CharacterData.data
.
previousElementSibling: Element
nextElementSibling: Element
Returns a DOMString
containing the part of CharacterData.data
of the specified length and starting at the specified offset.
Name | Type |
---|---|
offset |
Int |
count |
Int |
Returns |
---|
String |
Appends the given DOMString
to the CharacterData.data
string; when this method returns, data
contains the concatenated DOMString
.
Name | Type |
---|---|
data |
String |
Inserts the specified characters, at the specified offset, in the CharacterData.data
string; when this method returns, data
contains the modified DOMString
.
Name | Type |
---|---|
offset |
Int |
data |
String |
Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data
string; when this method returns, data
contains the shortened DOMString
.
Name | Type |
---|---|
offset |
Int |
count |
Int |
Replaces the specified amount of characters, starting at the specified offset, with the specified DOMString
; when this method returns, data
contains the modified DOMString
.
Name | Type |
---|---|
offset |
Int |
count |
Int |
data |
String |
before(nodes: haxe.extern.Rest): Void
Name | Type |
---|---|
nodes |
haxe.extern.Rest |
after(nodes: haxe.extern.Rest): Void
Name | Type |
---|---|
nodes |
haxe.extern.Rest |
replaceWith(nodes: haxe.extern.Rest): Void
Name | Type |
---|---|
nodes |
haxe.extern.Rest |
remove(): Void