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, 19 May 2011 15:54:08 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QN5Y8-0004kJ-R3@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12072

--- Comment #32 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-05-19 15:54:03 UTC ---
(In reply to comment #31)
> I'll get a warning added.

Validator.nu currently states:

]]
Warning: Comments seen before doctype. Internet Explorer will go into the
quirks mode.
[[

However, the above warning is not 100% correct, as it dpeneds on the format of
the comment whether it brings IE in quirks-mode or not. See: 
http://bugzilla.validator.nu/show_bug.cgi?id=836

With regard to what HTML5 should say:: if comments before the DOCTYPE were
illegal, then validators could present a more unambigious error message. But on
the other side: it might be better if authors familiarize themselves with the
IE problems.

-- 
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, 19 May 2011 15:54:10 UTC

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