The DOMImplementation
interface represents an object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation
property.
Property
This interface has no specific property and doesn't inherit any.
Methods
No inherited method.
DOMImplementation.createDocument()
- Creates and returns an
XMLDocument
. DOMImplementation.createDocumentType()
- Creates and returns a
DocumentType
. DOMImplementation.createHTMLDocument()
- Creates and returns an HTML
Document
. DOMImplementation.hasFeature()
- Returns a
Boolean
indicating if a given feature is supported or not. This function is unreliable and kept for compatibility purpose alone: except for SVG-related queries, it always returnstrue
. Old browsers are very inconsistent in their behavior.
Specifications
Specification | Status | Comment |
DOMThe definition of 'DOMImplementation' in that specification. | Living Standard | Removed the getFeature() method.
Added the |
Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'DOMImplementation' in that specification. | Obsolete | Added the getFeature() method (never implemented by any user agent).
|
Document Object Model (DOM) Level 2 Core SpecificationThe definition of 'DOMImplementation' in that specification. | Obsolete | Added the createDocument() and createDocumentType() methods.
|
Document Object Model (DOM) Level 1 SpecificationThe definition of 'DOMImplementation' in that specification. | Obsolete | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DOMImplementation
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support 6 |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
createDocument
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support 9 |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
createDocumentType
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support 9 |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
createHTMLDocument
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support 4 |
IE Full support 9 Full support 9 Notes' The |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox Full support Yes Full support Yes Notes' Since Firefox 19, |
IE
Full support 6 |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- Deprecated. Not for use in new websites.'
- Deprecated. Not for use in new websites.
- See implementation notes.'
- See implementation notes.
See also
DOMImplementation by Mozilla Contributors is licensed under CC-BY-SA 2.5.