DOMImplementation

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

DOMImplementation インターフェイスは、特定の文書に依存しないメソッドを提供するオブジェクトを表します。こうしたオブジェクトは Document.implementation プロパティで返されます。

プロパティ

このインターフェイスは特定のプロパティを持たず、継承もしていません。

メソッド

継承しているメソッドはありません。

DOMImplementation.createDocument()

XMLDocument を作成して返します。

DOMImplementation.createDocumentType()

DocumentType を作成して返します。

DOMImplementation.createHTMLDocument()

HTML Document を作成して返します。

DOMImplementation.hasFeature() 非推奨;

指定された機能に対応しているかどうかを示す論理値を返します。この関数は信頼性が低く、互換性のためだけに用意されています。SVG 関連のクエリーを除けば、常に true を返します。古いブラウザーはその動作にまったく一貫性がありません。

仕様書

Specification
DOM
# interface-domimplementation

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
DOMImplementation
createDocument
createDocumentType
createHTMLDocument
hasFeature
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.
See implementation notes.

関連情報