[whatwg] HTML syntax: comments before doctype and doctype sniffing
zcorpan at hotmail.com
Sun Dec 3 15:02:38 PST 2006
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.
Bjud på sjysta märkesjackan http://tradera.msn.se/
More information about the whatwg