DOMImplementation (W3C DOM Core object)
Example
var imp = document.implementation;
The example above saves a reference to the
DOMImplementation that controls this document.
This reference can then be used as a means of accessing
implementation methods, such as hasFeature and createDocument.
Description
The
DOMImplementation interface provides methods for
operations that are independent of any specific document or instance of
the DOM.
DOMImplementation is not a node,
hence it has no nodeName, nodeType or other properties of Node.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 1.5 | 2.0 | 3.0 | 1.3 | 2.0 | 3.0 | 9.0 | 9.5 |
| Partial | Partial | Partial | Full | Full | Full | Buggy | Buggy | Full | Full | Full |
Internet Explorer doesn't implement the following:
Internet Explorer 5.5 in HTML doesn't
implement this interface (implementation is
undefined).
Safari 1.3 has a buggy
implementation of createDocumentType.
Safari 1.3 and 2 have a buggy
implementation of createDocument.
In this Section
- createDocument
Create an XML document, including its root node. - createDocumentType
Creates an empty DocumentType node, which can then be passed as the doctype argument to createDocument. - hasFeature
Tests whether a specific feature of the DOM is implemented.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.