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