W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 12072] Comments before <!DOCTYPE html> should be forbidden

From: <bugzilla@jessica.w3.org>
Date: Wed, 16 Feb 2011 15:38:55 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PpjSx-0000Rz-Fg@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12072

--- Comment #7 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-02-16 15:38:54 UTC ---
(In reply to comment #6)
> (In reply to comment #2)
> > Henri, any opinion on this?
> 
> I could live with comments before doctype being a conformance error. (I'd be
> scared about actually changing mode selection though. I'd prefer IE getting
> fixed eventually.)

The only news in IE9beta is quirksmode in 'application/xhtml+xml'!

So for example if you place this in the <head> element, then it triggers
quirksmode even in 'application/xhtml+xml':

    <meta http-equiv="X-UA-Compatible" content="IE=5"/>

As does the following variants (perhaps the DOCTYPE is "invisible" to IE in
'application/xhtml+xml'?):

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Whereas these does seemingly not trigger quirksmode (don't know what other
effects it has):

    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />

It seems that, in 'application/xhtml+xml', then 

    <!--[if ie]>
    <meta http-equiv="X-UA-Compatible" content="IE=5" />
    <![endif]-->

before the DOCTYPE or between DOCTYPE and <html 
xmlns="http://www.w3.org/1999/xhtml" >, does not have any effect.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 16 February 2011 15:38:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 February 2011 15:38:57 GMT