Discussion:
How to create <!DOCTYPE> element in JavaScript?
Boris Zbarsky
2010-04-05 15:23:53 UTC
Permalink
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
Axel Dahmen
2010-04-07 03:00:32 UTC
Permalink
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


-------------------
Post by Boris Zbarsky
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
Continue reading on narkive:
Loading...