The DOMCharacterData class
Guide
Edit on GitHub ✎
Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.
Intro
Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.
Class synopsis
class DOMCharacterData extends DOMNode implements DOMChildNode { }
Properties
dataThe contents of the node.
lengthThe length of the contents.
nextElementSiblingThe next sibling element or null.
previousElementSiblingThe previous sibling element or null.
Changelog
| Version | Description |
|---|---|
| 8.0.0 | The nextElementSibling and previousElementSibling properties have been added. |
| 8.0.0 | DOMCharacterData implements DOMChildNode now. |
See Also
- W3C specification of CharacterData
Domcharacterdata