这篇翻译不完整。请帮忙从英语翻译这篇文章

DocumentType 接口 表示了一个包含文档类型的节点 Node .

属性

继承自父节点 Node, 并实现了 ChildNode 接口.

...
DocumentType.entities 只读
...
DocumentType.name 只读
...
DocumentType.notations 只读
...
DocumentType.publicId 只读
...
DocumentType.systemId 只读
...

方法

继承自父节点,Node, 并实现了 ChildNode 接口.

ChildNode.remove()
从父节点的子节点的列表中移除这个对象.

规范

Specification Status Comment
DOM
DocumentType
Living Standard Added implemention of the ChildNode interface.
Removed the internalSubset, entities, and notation properties.
Document Object Model (DOM) Level 3 Core Specification
DocumentType
Obsolete No change from Document Object Model (DOM) Level 2 Core Specification.
Document Object Model (DOM) Level 2 Core Specification
CharacterData
Obsolete Added the publicID, systemID, and internalSubset properties.
Document Object Model (DOM) Level 1 Specification
CharacterData
Obsolete Initial definition

浏览器兼容性

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!

        
Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
entities and notations 1.0[1] ? 1.0 (1.7 or earlier)
未实现6.0 (6.0)
? (Yes)[1] (Yes)
Implements ChildNode 29.0 ? 25.0 (25.0)[2] 未实现 16.0 未实现
        
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)
entities and notations (Yes)[1] ? 1.0 (1.0)
未实现6.0 (6.0)
? (Yes) (Yes)
Implements ChildNode (Yes) ? 25.0 (25.0)[2] 未实现 16.0 未实现

[1] Chromium项目计划删除对internalSubset,entitiesnotations 方法的支持。

[2] Firefox 25 增加了previousElementSibling 和 nextElementSibling 属性,这在Firefox 28中由于兼容性问题删除。

相关参考

文档标签和贡献者

此页面的贡献者: yatace, pasturn
最后编辑者: yatace,