--- title: ChildNode slug: Web/API/ChildNode tags: - API - DOM - Experimental - Interface - NeedsTranslation - Node - TopicStub translation_of: Web/API/ChildNode ---
ChildNode
contém métodos que são particulares para os objetos{{domxref("Node")}} que podem ter um pai.
ChildNode
é uma interface bruta e nenhum objeto desse tipo pode ser criado; eles são implementados pelos objetos {{domxref("Element")}}, {{domxref("DocumentType")}}, e {{domxref("CharacterData")}}.
Não há propriedades herdadas nem específicas.
Não há métodos herdados.
ChildNode
from the children list of its parent.ChildNode
's parent, just before this ChildNode
. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.ChildNode
's parent, just after this ChildNode
. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.ChildNode
in the children list of its parent with a set of {{domxref("Node")}} or {{domxref("DOMString")}} objects. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.Especificação | Status | Comentário |
---|---|---|
{{SpecName('DOM WHATWG', '#interface-childnode', 'ChildNode')}} | {{Spec2('DOM WHATWG')}} | Split the ElementTraversal interface in {{domxref("ParentNode")}} and ChildNode . previousElementSibling and nextElementSibling are now defined on the latter. The {{domxref("CharacterData")}} and {{domxref("DocumentType")}} implemented the new interfaces. Added the remove() , before() , after() and replaceWith() methods. |
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}} | {{Spec2('Element Traversal')}} | Added the initial definition of its properties to the ElementTraversal pure interface and use it on {{domxref("Element")}}. |
External on github: childNode.js
{{Compat("api.ChildNode")}}