createDocument(namespaceURI, qualifiedName, doctype) {
        // raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR,WRONG_DOCUMENT_ERR
        const doc = new document_1.DocumentImpl();
        doc.implementation = this;
        doc.childNodes = new node_list_of_1.NodeListOfImpl();
        doc.doctype = doctype;
        if (doctype) {
            doc.appendChild(doctype);
        }
        if (namespaceURI && qualifiedName) {
            const root = doc.createElementNS(namespaceURI, qualifiedName);
            doc.appendChild(root);
        }
        return doc;
    }
// Introduced in DOM Level 2:
Introduced in DOM Level 2.
Introduced in DOM Level 2 .
createDocument(namespaceURI, qualifiedName, doctype) {
        const doc = new document_1.DocumentImpl();
        doc.implementation = this;
        doc.childNodes = new node_list_of_1.NodeListOfImpl();
        doc.doctype = doctype;
        if (doctype) {
            doc.appendChild(doctype);
        }
        if (namespaceURI && qualifiedName) {
            const root = doc.createElementNS(namespaceURI, qualifiedName);
            doc.appendChild(root);
        }
        return doc;
    }
createDocument ( namespaceURI , qualifiedName , doctype ) { const doc = new document_1 . DocumentImpl ( ) ; doc . implementation = this ; doc . childNodes = new node_list_of_1 . NodeListOfImpl ( ) ; doc . doctype = doctype ; if ( doctype ) { doc . appendChild ( doctype ) ; } if ( namespaceURI && qualifiedName ) { const root = doc . createElementNS ( namespaceURI , qualifiedName ) ; doc . appendChild ( root ) ; } return doc ; }
Introduced in DOM Level 2:
Introduced in DOM Level 2 :
// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR,WRONG_DOCUMENT_ERR