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

"Axel Dahmen" <[email protected]> Wed, 7 Apr 2010 05:00:32 +0200
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Yes, you are right, my mistake. I guess this mistake was caused by the flu I 
had last week, too. I've put my question to the appropriate group now and 
received a helpful answer already.

Axel


-------------------
"Boris Zbarsky" <[email protected]> schrieb im Newsbeitrag 
news:[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