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

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 UTC