For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface DOMImplementation
interface DOMImplementation {
createDocument(
namespace: string | null,
qualifiedName: string | null,
doctype?: DocumentType | null,
): XMLDocument;
createDocumentType(
name: string,
publicId: string,
systemId: string,
): DocumentType;
createHTMLDocument(title?: string): Document;
hasFeature(...args: any[]): true;
}
createDocument(
namespace: string | null,
qualifiedName: string | null,
doctype?: DocumentType | null,
): XMLDocument;
createDocumentType(
name: string,
publicId: string,
systemId: string,
): DocumentType;
createHTMLDocument(title?: string): Document;
hasFeature(...args: any[]): true;
}
Index
Methods
createDocument
-
createDocument(
namespace: string | null,
qualifiedName: string | null,
doctype?: DocumentType | null,
): XMLDocumentThe
DOMImplementation.createDocument()method creates and returns an XMLDocument.Parameters
- namespace: string | null
- qualifiedName: string | null
Optionaldoctype: DocumentType | null
Returns XMLDocument
createDocumentType
-
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
- name: string
- publicId: string
- systemId: string
Returns DocumentType
createHTMLDocument
-
The
DOMImplementation.createHTMLDocument()method creates a new HTML Document.Parameters
Optionaltitle: string
Returns Document
The
DOMImplementationinterface 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