NonDocumentTypeChildNode - Web APIs 编辑
The NonDocumentTypeChildNode
interface contains methods that are particular to Node
objects that can have a parent, but not suitable for DocumentType
.
NonDocumentTypeChildNode
is a raw interface and no object of this type can be created; it is implemented by Element
, and CharacterData
objects.
Properties
There are no inherited properties.
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 are neither inherited nor specific methods.
Specifications
Specification | Status | Comment |
---|---|---|
DOM The definition of 'NonDocumentTypeChildNode' in that specification. | Living Standard | Splitted the ElementTraversal interface in ParentNode , ChildNode , and NonDocumentTypeChildNode . The previousElementSibling and nextElementSibling are now defined on the latter.The CharacterData and Element implemented the new interfaces. |
Element Traversal Specification The definition of 'ElementTraversal' in that specification. | Obsolete | Added the initial definition of its properties to the ElementTraversal pure interface and use it on Element . |
Browser compatibility
BCD tables only load in the browser
See also
- The
ParentNode
andChildNode
pure interface. - Object types implementing this pure interface:
CharacterData
, andElement
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论