Visit Mozilla.org

DOM:document.doctype

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns the Document Type Declaration (DTD) associated with current document. The returned object implements DocumentType interface.

[edit] Syntax

doctype = document.doctype;

doctype is a read-only property.

[edit] 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.

[edit] Specification

DOM Level 2 Core: doctype