XHTML in IE
Out of context: Reply #4
- Started
- Last post
- 6 Responses
- versa0
from a discussion at http://www.alistapart.com
>> IE6 triggers quirks mode if there is an XML declaration present.
> You've got to be kidding me. Is this seriously the case?
Unfortunately, it is. I've confirmed it on my own. The only way to trigger "standards" mode in IE6 is to forego the use of the XML declaration.
> Doesn't the standard REQUIRE the XML declaration at the top, above the DOCTYPE tag?
If you use both an XML declaration and a DOCTYPE, the XML declaration *must* be on the first line, followed by the DOCTYPE on the second line. But as riffola said, you can lose the XML declaration if you specify the document encoding type in a element. This may not be ideal, but it's a valid workaround. Our salvation is that Microsoft will have released a new browser version by the time the next version of XML is released and we're forced to use an XML declaration to comply.