--- title: NonDocumentTypeChildNode slug: conflicting/Web/API/Element_861159909c20acebf8e506c3bb0e2f7e tags: - API - DOM - Interface - NeedsTranslation - Reference - TopicStub translation_of: Web/API/NonDocumentTypeChildNode original_slug: Web/API/NonDocumentTypeChildNode ---
The NonDocumentTypeChildNode
interface contains methods that are particular to {{domxref("Node")}} objects that can have a parent, but not suitable for {{domxref("DocumentType")}}.
NonDocumentTypeChildNode
is a raw interface and no object of this type can be created; it is implemented by {{domxref("Element")}}, and {{domxref("CharacterData")}} objects.
There is no inherited property.
null
if there is no {{domxref("Element")}} in the list prior to this node.null
if there is no {{domxref("Element")}} in the list following this node.There is neither inherited, nor specific method.
Specification | Status | Comment |
---|---|---|
{{SpecName('DOM WHATWG', '#interface-childnode', 'NonDocumentTypeChildNode')}} | {{Spec2('DOM WHATWG')}} | Splitted the ElementTraversal interface in {{domxref("ParentNode")}}, {{domxref("ChildNode")}}, and NonDocumentTypeChildNode . The previousElementSibling and nextElementSibling are now defined on the latter.The {{domxref("CharacterData")}} and {{domxref("Element")}} implemented the new interfaces. |
{{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")}}. |
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support (on {{domxref("Element")}}) | 1.0 | {{CompatGeckoDesktop("1.9.1")}} | 9.0 | 10.0 | 4.0 |
Support (on {{domxref("CharacterData")}}) | 1.0 | {{CompatGeckoDesktop("25.0")}} [1] | 9.0 | 10.0 | 4.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support (on {{domxref("Element")}}) | {{ CompatVersionUnknown() }} | {{CompatGeckoDesktop("1.9.1")}} | {{ CompatVersionUnknown() }} | 10.0 | {{ CompatVersionUnknown() }} |
Support (on {{domxref("CharacterData")}}) | {{ CompatVersionUnknown() }} | {{CompatGeckoDesktop("25.0")}} | {{ CompatVersionUnknown() }} | 10.0 | {{ CompatVersionUnknown() }} |
[1] Firefox 25 also added the two properties defined here on {{domxref("DocumentType")}}, this was removed in Firefox 28 due to compatibility problems, and led to the creation of this new pure interface.