Can I have an XHTML document with an XML declaration in standards mode for IE6?
Posted
by user225643
on Stack Overflow
See other posts from Stack Overflow
or by user225643
Published on 2010-03-22T17:33:54Z
Indexed on
2010/03/22
17:51 UTC
Read the original article
Hit count: 286
I've been reading about this for the last half hour, and here's what I understand:
IE 6 will render a page in standards mode if there's a valid DTD, but not if there are any comments above the DTD.
The XML declaration is a comment that goes above the DTD.
If the XML declaration is wrapped in a conditional comment, the page will render in IE 6 in quirks mode but be invalid XHTML.
Are there any workarounds to getting valid XHTML with an XML declaration to render in standards mode in IE6? If not, what are the disadvantages of removing the XML declaration entirely?
Thanks.
© Stack Overflow or respective owner