Dom-documenttype-object

提供:Dev Guides
移動先:案内検索

DOM-DocumentTypeオブジェクト

_DocumentType_オブジェクトは、ドキュメントのデータにアクセスするためのキーであり、ドキュメント内では、doctype属性にnull値またはDocumentTypeオブジェクト値を設定できます。 これらのDocumentTypeオブジェクトは、XMLドキュメント用に記述されたエンティティへのインターフェイスとして機能します。

属性

次の表は、_DocumentType_オブジェクトの属性を示しています-

Attribute Type Description
name DOMString It returns the name of the DTD which is written immediately next to the keyword !DOCTYPE.
entities NamedNodeMap It returns a NamedNodeMap object containing the general entities, both external and internal, declared in the DTD.
notations NamedNodeMap It returns a NamedNodeMap containing the notations declared in the DTD.
internalSubset DOMString It returns an internal subset as a string, or null if there is none. This has been removed. Refer specs.
publicId DOMString It returns the public identifier of the external subset.
systemId DOMString It returns the system identifier of the external subset. This may be an absolute URI or not.

方法

_DocumentType_は、その親である_Node_からメソッドを継承し、_ChildNode_インターフェイスを実装します。