doctype: DocumentType
This attribute returns an instance of the DocumentType
interface representing the
document type declaration for this document. If no DOCTYPE
declaration was in the document,
this property is null
. Prior to
DOM Level 3, the DocumentType
node associated with a document was immutable and could not be
created directly. In Level 3 implementations, the doctype
attribute is a shortcut to the
DocumentType
node that is
currently linked into the document node hierarchy.
Read-only.