Re: How to create <!DOCTYPE> element in JavaScript?

Boris Zbarsky <[email protected]> Mon, 05 Apr 2010 11:23:53 -0400
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 4/3/10 9:28 AM, Axel Dahmen wrote:
> I'd like to create a HTML document from scratch, but I don't know how to
> create a "<!DOCTYPE HTML>" element.

1)  This is a DOM question, not a JavaScript question.
2)  It's an authoring question, so not really appropriate to the
     mozilla development groups.
2)  The doctype is not an element.
3)
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#Level-2-Core-DOM-createDocType

-Boris