Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

createDocument

Description

The createDocument JS DOMImplementation returns an XMLDocument, with a document element whose local name is qualifiedName and whose namespace is namespace (unless qualifiedName is the empty string), and with doctype, if it is given, as its doctype.

This method throws the same exceptions as the createElementNS() method, when invoked with namespace and qualifiedName.

Syntax

doc = document.implementation.createDocument(namespace, qualifiedName [, doctype = null])

Parameters

namespace

A null or a non-empty string.

qualifiedName

A qualified name.

doctype

A DocumentType node.

Examples

1 · namespace qualifiedName | generic

2 · namespace qualifiedName | specific

3 · doctype | generic

4 · doctype | specific

createDocumentType

createHTMLDocument

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu