Boris Zbarsky
2010-04-05 15:23:53 UTC
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.create a "<!DOCTYPE HTML>" element.
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