W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] HTML syntax: comments before doctype and doctype sniffing

From: Simon Pieters <zcorpan@hotmail.com>
Date: Sun, 03 Dec 2006 23:02:38 +0000
Message-ID: <BAY109-F9F5459AF28D5B4BD178E3B4D80@phx.gbl>

The parsing section says that a comment before the doctype may trigger 
quirks mode. Therefore I think the syntax section shouldn't allow comments 
before the doctype (only space characters).

Also, as an additional constraint in the syntax section, the entire doctype 
probably should (or must) be within the first 1024 bytes, because AFAIK 
browsers generally only sniff for the first 1024 bytes, and if they don't 
find the entire doctype within that then you get quirks mode.

Simon Pieters

Bjud p? sjysta m?rkesjackan http://tradera.msn.se/
Received on Sunday, 3 December 2006 15:02:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC