DOMImplementation Interface

The DOMImplementation interface provides methods to create documents and determine whether or not specified features are available in a particular implementation of the DOM APIs.

DOM Interface Methods
boolean
document.implementation.hasFeature(DOMString feature, DOMString version)
Determines whether the DOM implementation supports a specific feature.
Parameters:
feature -
version -
Returns:
true if the feature is implemented in the specified version or false if not
DOMObject
document.implementation.getFeature(DOMString feature, DOMString version)
Parameters:
feature -
version -
Returns:
-
DocumentType
document.implementation.createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId) raises (DOMException)
Creates an empty DocumentType node. For HTML 5, the publicId and systemId should both be null.
Parameters:
-
-
Returns:
a new DocumentType node
Document
document.implementation.createDocument(DOMString namespaceURI, DOMString qualifiedName, DocumentType doctype) raises (DOMException)
Parameters:
-
-
Returns:
a new Document object with its document element