CharacterData (W3C DOM Core object)
| Version | Depr. | Parent |
|---|---|---|
| DOM1 | No | Node |
| IE5.5+ | FF1.5+ | SA1.3+ | OP9+ |
|---|---|---|---|
| Partial | Full | Full | Full |
Description
The
CharacterData interface provides a set of properties
and methods for working with text content (referred to as
character data) in the DOM. This interface doesn't
represent any actual object, but is inherited by other interfaces which do
— Text, Comment and CDATASection.
CharacterData nodes may be empty.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 1.5 | 2.0 | 3.0 | 1.3 | 2.0 | 3.0 | 9.0 | 9.5 |
| Partial | Partial | Partial | Full | Full | Full | Full | Full | Full | Full | Full |
Internet Explorer 5.5 in HTML doesn't implement any of this interface's methods (but does implement them in XML).
Internet Explorer 6 and 7 don't inherit the
normalize
method from Node.
In this Section
- appendData
Append a string to the end of this data. - data
The character data of a text node, comment or CDATA section node, or the data in a processing instruction. - deleteData
Delete a string from this data between specified offsets. - insertData
Insert a string into this data at a specified character offset. - length
The number of items in a node list or named node map, or the number of characters in a data string. - replaceData
Insert a string to replace the data between specified offsets. - substringData
Extract the data between specified character offsets.