An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.

interface DOMImplementation {
    createDocument(namespace: null | string, qualifiedName: null | string, doctype?: null | DocumentType): XMLDocument;
    createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
    createHTMLDocument(title?: string): Document;
    hasFeature(...args: any[]): true;
}

方法

  • 参数

    • namespace: null | string
    • qualifiedName: null | string
    • 可选doctype: null | DocumentType

    返回 XMLDocument

  • 参数

    • qualifiedName: string
    • publicId: string
    • systemId: string

    返回 DocumentType

  • 参数

    • 动态参数...args: any[]

    返回 true