Dom 简明教程
DOM - DOMImplementation Object
DOMImplementation 对象提供许多方法来执行与任何特定文档对象模型实例无关的操作。
The DOMImplementation object provides a number of methods for performing operations that are independent of any particular instance of the document object model.
Methods
下表列出了 DOMImplementation 对象的方法:
Following table lists the methods of the DOMImplementation object −
S.No. |
Method & Description |
1 |
createDocument(namespaceURI, qualifiedName, doctype)It creates a DOM Document object of the specified type with its document element. |
2 |
createDocumentType(qualifiedName, publicId, systemId)It creates an empty DocumentType node. |
3 |
getFeature(feature, version) This method returns a specialized object which implements the specialized APIs of the specified feature and version. This has been removed. Refer specs. |
4 |
hasFeature(feature, version)This method tests if the DOM implementation implements a specific feature and version. |