This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

createDocumentType

Summary

Creates a Document Type node.

Method of dom/Implementationdom/Implementation

Syntax

var object = implementation.createDocumentType(qualifiedName, publicID, systemId);

Parameters

qualifiedName

Data-type
String

The name of the document type. When you use XML namespaces, this name can be a qualified name (for example, namespace:localname).

publicID

Data-type
String

The public identifier of the document type or null.

systemId

Data-type
String

The system identifier of the document type or null.

Return Value

Returns an object of type DOM NodeDOM Node

The created document type object.

Related specifications

DOM Level 3 Core
Recommendation

Attributions