Terry Hamel wrote:
> I may have misstated myself about IE6 and XML. I just reread Eric
> Myers "picking a rendering mode" @
> http://www.ericmeyeroncss.com/bonus/render-mode.html in which he
> states IE6 DOES know how to render any XML mode in standards mode.
> I just completed a project that required IE6 rendering and I couldn't
> get it to even display until I switched all tags and DOCTYPE to HTML.
> Somewhere along the way, I read that telling sending type="text/HTML"
> while in XML DOCTYPE confuses IE6 (or any browser) and thus puts it
> into quirks mode. I didn't think to set it to "text/XML" and still
> haven't tested it.
> Sorry for the confusion, even if my suggestions will still work. :)
I will dare say that xml doctypes, mime types and parsing seem to confuse people more than it does
The statement "IE6 DOES know how to render any XML mode in standards mode" or anything similar I can
not see on the page on Eric Myers site and is not true. I have almost finished a site and this is
the doctype and mime type.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
IE (any version) will treat my application/xhtml+xml as text/html and parse it as tag soup. The
pages are saved with a htm or html extension, but if I served it up as true xml with a xml
extension, the page will only show in a decent browser like FF or Opera. If I happen to add the xml
prolog on the first line,
<?xml version="1.0" encoding="utf-8"?> then IE6 will be in quirksmode. This may be the reason that
your pages were not showing right in IE6.
Some good sites about doctypes and parsing are.
Remember that browsers usually show xhtml or html in standard mode (or almost standard mode) with a
URI or quirksmode without a URI. There was a good page on Georg's site about why he likes to send
IE6 into quirksmode with the xml prolog, but I can not find it now.
I still have a lot to learn myself since some pages on Georg's site don't even have a mime type.
Very confusing indeed.
Kind Regards, Alan
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/