---
title: "DOMImplementation | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface DOMImplementation

The **`DOMImplementation`** interface represents an object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)

interface DOMImplementation {  
    [createDocument](#createdocument-1)(  
        namespace: string | null,  
        qualifiedName: string | null,  
        doctype?: [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/) | null,  
    ): [XMLDocument](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.XMLDocument/);  
    [createDocumentType](#createdocumenttype-1)(  
        name: string,  
        publicId: string,  
        systemId: string,  
    ): [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/);  
    [createHTMLDocument](#createhtmldocument-1)(title?: string): [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/);  
    [hasFeature](#hasfeature-1)(...args: any\[\]): true;  
}

##### Index

### Methods[](#methods)

[createDocument](#createdocument) [createDocumentType](#createdocumenttype) [createHTMLDocument](#createhtmldocument) [hasFeature](#hasfeature)

## Methods[](#methods-1)

### createDocument[](#createdocument)

-   createDocument(  
        namespace: string | null,  
        qualifiedName: string | null,  
        doctype?: [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/) | null,  
    ): [XMLDocument](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.XMLDocument/)[](#createdocument-1)
    
    The **`DOMImplementation.createDocument()`** method creates and returns an XMLDocument.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument)
    
    #### Parameters
    
    -   namespace: string | null
    -   qualifiedName: string | null
    -   `Optional`doctype: [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/) | null
    
    #### Returns [XMLDocument](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.XMLDocument/)
    

### createDocumentType[](#createdocumenttype)

-   createDocumentType(  
        name: string,  
        publicId: string,  
        systemId: string,  
    ): [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/)[](#createdocumenttype-1)
    
    The **`DOMImplementation.createDocumentType()`** method returns a DocumentType object which can either be used with DOMImplementation.createDocument upon document creation or can be put into the document via methods like Node.insertBefore() or Node.replaceChild().
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)
    
    #### Parameters
    
    -   name: string
    -   publicId: string
    -   systemId: string
    
    #### Returns [DocumentType](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.DocumentType/)
    

### createHTMLDocument[](#createhtmldocument)

-   createHTMLDocument(title?: string): [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/)[](#createhtmldocument-1)
    
    The **`DOMImplementation.createHTMLDocument()`** method creates a new HTML Document.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument)
    
    #### Parameters
    
    -   `Optional`title: string
    
    #### Returns [Document](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Document/)
    

### hasFeature[](#hasfeature)

-   hasFeature(...args: any\[\]): true[](#hasfeature-1)
    
    The **`DOMImplementation.hasFeature()`** method returns a boolean flag indicating if a given feature is supported. It is deprecated and modern browsers return true in all cases.
    
    #### Parameters
    
    -   ...args: any\[\]
    
    #### Returns true
    
    #### Deprecated[](#deprecated)
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
