The DOMImplementation Interface

This interface could be considered the highest level interface in the DOM. It exposes the hasFeature( ) method, which allows a developer using a given DOM implementation to detect if specific features are available. In DOM Level 2, it also provides facilities for creating new DocumentType nodes, which can then be used to create new Document instances. Table 18-15 describes the DomImplementation interface.

Table 18-15. DOMImplementation interface

Type Name DOM 2.0
Methods
Document createDocument Figure
DOMString namespaceURI Figure
DOMString qualifiedName Figure
DocumentType doctype Figure
DocumentType createDocumentType Figure
DOMString qualifiedName Figure
DOMString publicId Figure
DOMString systemId Figure
Boolean hasFeature
DOMString feature
DOMString version