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

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