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

createDocumentType

Description

The createDocumentType of DOMImplementation for JS returns a doctype, with the given qualifiedName, publicId, and systemId.

If qualifiedName does not match the Name production, an "InvalidCharacterError" DOMException is thrown, and if it does not match the QName production, a "NamespaceError" DOMException is thrown.

Syntax

doctype = document.implementation.createDocumentType(qualifiedName, publicId, systemId)

Parameters

qualifiedName

A qualified name.

publicId

A public identification.

systemId

A system identification.

Examples

1 · generic

2 · specific

createDocument

createHTMLDocument

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu