DocumentType
DocumentType
インターフェイスは、 doctype を包含する Node
を表します。
プロパティ
親インターフェイスである Node
からプロパティを継承しています。
DocumentType.internalSubset
読取専用 Deprecated-
内部サブセットの文字列、またはサブセットが存在しない場合は
null
になります。例:"<!ELEMENT foo (bar)>"
DocumentType.name
読取専用-
文字列で、
<!DOCTYPE HTML>
に対して"html"
のようになります。 DocumentType.notations
読取専用 Deprecated-
DTD で宣言された記法の
NamedNodeMap
です。 DocumentType.publicId
読取専用-
"-//W3C//DTD HTML 4.01//EN"
のような文字列です。 HTML5 では空文字列です。 DocumentType.systemId
読取専用-
"http://www.w3.org/TR/html4/strict.dtd"
のような文字列です。 HTML5 では空文字列です。
メソッド
親インターフェイスである Node
からメソッドを継承します。
DocumentType.after()
-
この
DocumentType
の親の子リストに、DocumentType
オブジェクトの直後にNode
または文字列オブジェクトのセットを挿入します。 DocumentType.before()
-
この
DocumentType
の親の子リストに、DocumentType
オブジェクトの直前にNode
または文字列オブジェクトのセットを挿入します。 DocumentType.remove()
-
オブジェクトをその親の子リストから削除します。
DocumentType.replaceWith()
-
文書型を与えられたノードの集合に置き換えます。
仕様書
Specification |
---|
DOM Standard # interface-documenttype |
ブラウザーの互換性
BCD tables only load in the browser