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

"Simon Pieters" <zcorpan at hotmail.com> wrote:

>The parsing section says that a comment before the doctype may trigger 
>quirks mode.

I'm assuming that this comment merely documents IE's current behaviour.
Please ignore my other comment if I'm wrong.

>Therefore I think the syntax section shouldn't allow comments 
>before the doctype (only space characters).

There are valid reasons to kick IE into quirks mode whilst triggering
"standards mode" in other browsers. There is existing content on the web
that intentionally does this. Why would you want to deny an author who
fully understands the issues from doing this?

-- 
Spartanicus

(email whitelist in use, non list-server mail will not be seen)

Received on Sunday, 3 December 2006 15:30:22 UTC