| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/pt-BR/docs/Web/API/CharacterData | [Back] [Original] |
Get to know MDN better
Esta pgina foi traduzida do ingls pela comunidade. Saiba mais e junte-se comunidade MDN Web Docs.
This feature is well established and works across many devices and browser versions. Its been available across browsers since julho de 2015.
A interface abstrata CharacterData representa um objeto Node que contm caracteres. Esta uma interface abstrata, o que significa que no h nenhum objeto do tipo CharacterData: ela implementada por outras interfaces, como Text, Comment ou ProcessingInstruction, que no so abstratas.
Herda propriedades de seu pai, Node, e implementa as interfaces ChildNode e NonDocumentTypeChildNode.
CharacterData.data um String representando os dados textuais contidos neste objeto.
CharacterData.length Somente leitura Retorna um unsigned long representando o tamanho da string contida em CharacterData.data.
NonDocumentTypeChildNode.nextElementSibling Somente leitura Returns the Element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.
NonDocumentTypeChildNode.previousElementSibling Somente leitura Returns the Element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.
Inherits methods from its parent, Node, and implements the ChildNode and NonDocumentTypeChildNode interface.
CharacterData.appendData()Appends the given String to the CharacterData.data string; when this method returns, data contains the concatenated String.
CharacterData.deleteData()Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; when this method returns, data contains the shortened String.
CharacterData.insertData()Inserts the specified characters, at the specified offset, in the CharacterData.data string; when this method returns, data contains the modified String.
ChildNode.remove() Removes the object from its parent children list.
CharacterData.replaceData()Replaces the specified amount of characters, starting at the specified offset, with the specified String; when this method returns, data contains the modified String.
CharacterData.substringData()Returns a String containing the part of CharacterData.data of the specified length and starting at the specified offset.
| Specification |
|---|
| DOM # interface-characterdata |
This page was last modified on 22 de mai. de 2026 by MDN contributors.
CharacterDataAbortControllerAbortSignalAbstractRangeAttrCDATASectionCommentCustomEventDOMErrorDOMExceptionDOMImplementationDOMParserDOMTokenListDocumentDocumentFragmentDocumentTypeElementEventEventTargetHTMLCollectionMutationObserverMutationRecordNamedNodeMapNodeNodeIteratorNodeListProcessingInstructionQuotaExceededErrorRangeShadowRootStaticRangeTextTreeWalkerXMLDocumentXPathEvaluatorXPathExpressionXPathResultXSLTProcessorYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |