DocumentType

この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

The DocumentType interface represents a Node containing a doctype.

Properties

Inherits properties from its parent, Node, and implements the ChildNode interface.

 
DocumentType.entities Read only
...
DocumentType.internalSubset Read only
...
DocumentType.name Read only
...
DocumentType.notations Read only
...
ChildNode.nextElementSibling Read only
Returns the Element immediately following the specified one in its parent's children list, or null if the specified element is the first one in the list.
DocumentType.publicId Read only
...
ChildNode.previousElementSibling Read only
Returns the Element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.
DocumentType.systemId Read only
...

Methods

Inherits methods from its parent, Node, and implements the ChildNode interface.

ChildNode.remove
Removes the object from its parent children list.

Specifications

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

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
entities and notations 1.0 [1] 1.0 (1.7 or earlier)
Removed in 6.0 (6.0)
? (Yes) [1] (Yes)
Implements ChildNode 29.0 25.0 (25.0) Not supported 16.0 Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)
entities and notations (Yes) [1] 1.0 (1.0)
Removed in 6.0 (6.0)
? (Yes) (Yes)
Implements ChildNode 29.0 25.0 (25.0) Not supported 16.0 Not supported

[1] The Chromium project plans to drop supports for the internalSubset, entities and notations methods.

See also

Document Tags and Contributors

タグ:
Contributors to this page: Sheppy, teoli, ethertank, Brettz9, samuelkato
最終更新者: teoli,