title: Read doctype with JavaScript
body: <p>Is the doctype part of the DOM, and if so, is there a good cross-browser way to read it?  I'm not trying to do anything fancy.  I just want to access the doctype information from within some JavaScript code.  Read-only access is fine.</p>