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.
Methods
createDocument()
createDocument(
namespace,
qualifiedName,
doctype?
): XMLDocument;
The DOMImplementation.createDocument() method creates and returns an XMLDocument.
Parameters
| Parameter | Type |
|---|---|
namespace | string | null |
qualifiedName | string | null |
doctype? | DocumentType | null |
Returns
createDocumentType()
createDocumentType(
name,
publicId,
systemId
): DocumentType;
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().
Parameters
| Parameter | Type |
|---|---|
name | string |
publicId | string |
systemId | string |
Returns
createHTMLDocument()
createHTMLDocument(title?): Document;
The DOMImplementation.createHTMLDocument() method creates a new HTML Document.
Parameters
| Parameter | Type |
|---|---|
title? | string |
Returns
hasFeature()
hasFeature(...args): true;
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
| Parameter | Type |
|---|---|
...args | any[] |
Returns
true