XHTML in IE
- Started
- Last post
- 6 Responses
- heavyarms
Has anyone made a valid XHTML page that shows up like an unstyled XML document in IE? It worked fine in Firebird. Another weird thing is now it seems to work IE but didn't last week.
- versa0
could be that your XML declaration is positioned above the document type ?
- heavyarms0
Yeah it's above it. It's also above it by default in DW and the examples on w3.org.?.?
- versa0
try moving it
- 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.
- jevad0
+1 versa
- heavyarms0
Yeah thanks a lot! Good info. How do you specify the document encoding type in an element?