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

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 17 May 2011 01:07:16 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QM8km-00056q-Tt@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12072

--- Comment #30 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-05-17 01:07:16 UTC ---
(In reply to comment #28)
> Not a very strong argument, since as far as I know, there's exactly one HTML5
> validator [...]

+1

With HTML5, the purpose of the DOCTYPE is changing. Left is only the DOCTYPE's
mode effects.  

Before HTML5, however, the mode effect was just a side effect. 

This can be seen from the fact that the quirks-mode variant (that is: the one
without URI) of the HTML4 transitional DOCTYPE, validates, without any warning
whatsoever, in the W3 Validator.

So, we really cannot make anything from the fact that HTML4 and  XHTML1.x
validators (the W3 validator is the dominating one) did not warn against
comments before the DOCTYPE as the DOCTYPE itself could trigger quirks mode -
and still validate.

-- 
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 Tuesday, 17 May 2011 01:07:18 UTC

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