[EMAIL PROTECTED] <> wrote:
> Great idea, but i can't get it to work -
> 
> Have tried
> 
> window.document.childNodes[0].nodeValue = '<!DOCTYPE html PUBLIC
> "-//W3C//DTD XHTML 1.1//EN" \n
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>';
> 
> and similar in ie6, but the document stays in quirks mode.
> 
> Any ideas or working examples of a doctype change?

You're able to access the doctype through the document.doctype
attribute, but I'm pretty sure it's read-only :|

> 
> Also other browsers are returning the html tag not the doctype as the
> first node in the document. 

As they should.
The doctype isn't a child node of document (IE in quirks mode probably
gets that wrong tho).

Had a quick scout around and found this (French):
http://darkmag.net/darkBlog/index.php/2004/01/06/4-GenerationDePagesWebL
otusNotesConformesAuxStandardsDuW3c

Seems to be something about adding the doctype to the HTTP headers
output by the server, might be of use to you.


-- 
 Lindsay Evans.
 Developer,
 Red Square Productions.

 [p] 8596.4000
 [f] 8596.4001
 [w] www.redsquare.com.au

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to