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

Functions

Link copied to clipboard
external fun createDocument(namespace: String?, qualifiedName: String?, doctype: DocumentType? = definedExternally): XMLDocument

The createDocument() method of the DOMImplementation interface creates and returns an XMLDocument.

Link copied to clipboard
external fun createDocumentType(name: String, publicId: String, systemId: String): 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().

Link copied to clipboard
external fun createHTMLDocument(title: String = definedExternally): Document

The DOMImplementation.createHTMLDocument() method creates a new HTML Document.