NonDocumentTypeChildNode
The NonDocumentTypeChildNode
interface contains methods that are particular to Node
objects that can have a parent, but not suitable for DocumentType
(en-US).
NonDocumentTypeChildNode
is a raw interface and no object of this type can be created; it is implemented by Element
, and CharacterData
(en-US) objects.
Properties
There is no inherited property.
NonDocumentTypeChildNode.previousElementSibling
Read only- Returns the
Element
immediately prior to this node in its parent's children list, ornull
if there is noElement
in the list prior to this node. NonDocumentTypeChildNode.nextElementSibling
Read only- Returns the
Element
immediately following this node in its parent's children list, ornull
if there is noElement
in the list following this node.
Methods
There is neither inherited, nor specific method.
Specifications
Specification | Status | Comment |
---|---|---|
DOM La definición de 'NonDocumentTypeChildNode' en esta especificación. |
Living Standard | Splitted the ElementTraversal interface in ParentNode , ChildNode , and NonDocumentTypeChildNode . The previousElementSibling and nextElementSibling are now defined on the latter.The CharacterData (en-US) and Element implemented the new interfaces. |
Element Traversal Specification La definición de 'ElementTraversal' en esta especificación. |
Obsolete | Added the initial definition of its properties to the ElementTraversal pure interface and use it on Element . |
Browser compatibility
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support (on Element ) |
1.0 | 3.5 (1.9.1) | 9.0 | 10.0 | 4.0 |
Support (on CharacterData (en-US)) |
1.0 | 25.0 (25.0) [1] | 9.0 | 10.0 | 4.0 |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support (on Element ) |
(Yes) | 3.5 (1.9.1) | (Yes) | 10.0 | (Yes) |
Support (on CharacterData (en-US)) |
(Yes) | 25.0 (25.0) | (Yes) | 10.0 | (Yes) |
[1] Firefox 25 also added the two properties defined here on DocumentType
(en-US), this was removed in Firefox 28 due to compatibility problems, and led to the creation of this new pure interface.
See also
- The
ParentNode
andChildNode
pure interface. -
Object types implementing this pure interface:
CharacterData
(en-US), andElement
.