files/en-us/web/api/characterdata/index.md
{{APIRef("DOM")}}
The CharacterData abstract interface represents a {{domxref("Node")}} object that contains characters. This is an abstract interface, meaning there aren't any objects of type CharacterData: it is implemented by other interfaces like {{domxref("Text")}}, {{domxref("Comment")}}, {{domxref("CDATASection")}}, or {{domxref("ProcessingInstruction")}}, which aren't abstract.
{{InheritanceDiagram}}
This interface also inherits properties from its parents, {{domxref("Node")}} and {{domxref("EventTarget")}}.
This interface also inherits methods from its parents, {{domxref("Node")}} and {{domxref("EventTarget")}}.
CharacterData's parent, just after the CharacterData object.CharacterData.data string; when this method returns, data contains the concatenated string.CharacterData's parent, just before the CharacterData object.CharacterData.data string; when this method returns, data contains the shortened string.CharacterData.data string; when this method returns, data contains the modified string.data contains the modified string.CharacterData.data of the specified length and starting at the specified offset.{{Specifications}}
{{Compat}}