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 17:42:39 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PplOh-0007Fe-Kv@jessica.w3.org>

--- Comment #9 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-02-16 17:42:39 UTC ---
(In reply to comment #8)
> (In reply to comment #1)
> > An advantage which a forbidding of comments before the DOCTYPE provides, is
> > that it would largely kill off X-UA-COMPATIBLE meta elements from  having any
> > effect in legal HTML5 syntax.
> I think you've got a misconception. The meta switch in IE does not need any
> Conditional Comments.

I said spoke about "legal HTML5 syntax".  The meta X-UA-COMPATIBLE element is
makes your document non-conforming to HTML5.

Thus, in order to be conforming to the HTML5 syntax rules, it is necessary to
wrap the X-UA-Compatible META element inside a conditional comment  which you
place before the DOCTYPE.  

To wrap the X-UA-COMPATIBLE inside a conditional comment inside <head>  makes
no sense: it doesn't work.

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 17:42:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:05 UTC