NonDocumentTypeChildNode

翻譯不完整。請協助 翻譯此英文文件

NonDocumentTypeChildNode 介面定義了可以擁有父節點但不適用 DocumentType 之 Node 物件的方法。

NonDocumentTypeChildNode 是一個原始的介面,且不能以此建立物件實體。Element 及 CharacterData 物件皆實作了 NonDocumentTypeChildNode

屬性

There is no inherited property.

NonDocumentTypeChildNode.previousElementSibling Read only
Returns the Element immediately prior to this node in its parent's children list, or null if there is no Element in the list prior to this node.
NonDocumentTypeChildNode.nextElementSibling Read only
Returns the Element immediately following this node in its parent's children list, or null if there is no Element in the list following this node.

方法

There is neither inherited, nor specific method.

規範

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.
Recommendation Added the initial definition of its properties to the ElementTraversal pure interface and use it on Element.

瀏覽器相容性

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) 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) (Yes) 25.0 (25.0) (Yes) 10.0 (Yes)

[1] Firefox 25 also added the two properties defined here on DocumentType, this was removed in Firefox 28 due to compatibility problems, and led to the creation of this new pure interface.

參見

文件標籤與貢獻者

 此頁面的貢獻者: jackblackevo
 最近更新: jackblackevo,