« Gecko DOM Reference
Summary
Returns the Document Type Declaration (DTD) associated with current document. The returned object implements DocumentType interface.
Syntax
doctype = document.doctype;
doctype is a read-only property.
Notes
The property returns null if there is no DTD associated with the current document.
DOM level 2 doesn't support editing the document type declaration.