DocumentType: remove() メソッド
DocumentType.remove() は文書の文書型宣言 (doctype) を削除します。
構文
js
remove()
引数
なし。
返値
なし (undefined)。
例
remove() の使用
js
document.doctype; // "<!DOCTYPE html>'
document.doctype.remove();
document.doctype; // null
仕様書
| Specification |
|---|
| DOM Standard # ref-for-dom-childnode-remove① |
ブラウザーの互換性
BCD tables only load in the browser