DOMImplementation Interface

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.


If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)


PDF mobile

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

Valid HTML 5