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

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

From: Spartanicus <spartanicus.3@ntlworld.ie>
Date: Sun, 03 Dec 2006 23:30:22 +0000
Message-ID: <n2m-g.ssm6n2pbven6avspbvcgudfl11fkjee90u@4ax.com>
"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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC