Name

DOMImplementation: methods independent of any particular document — DOM Level 1 Core: Object → DOMImplementation

Methods

createDocument( )

Creates a new Document object with a root element (the documentElement property of the returned Document object) of the specified type.

createDocumentType( )

Creates a new DocumentType node.

hasFeature( )

Checks whether the current implementation supports a specified version of a named feature.

Description

The DOMImplementation interface is a placeholder for methods that are not specific to any particular Document object but rather are “global” to an implementation of the DOM. You can obtain a reference to the DOMImplementation object through the implementation property of any Document object.

Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.