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: Thu, 05 May 2011 08:55:45 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QHuLZ-0005B9-18@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12072

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #24 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-05-05 08:55:44 UTC ---
This would be easy enough to do; add a "parse error" to the "comment" entry of
"the initial insertion mode", and remove "comments" from the syntax of a
document before the doctype.

The main argument in favour of this change is weird parsing behaviour in old
legacy UAs. I'm not sure that's a very compelling argument. The other arguments
presented above are even less compelling. On the other hand, there really
aren't any good arguments to allow comments there at all. So the question
really is whether the minor additional implementation burden on existing parser
implementations that do syntax validation is worth it.

-- 
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 Thursday, 5 May 2011 08:55:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 5 May 2011 09:00:02 GMT