W3C home > Mailing lists > Public > public-html@w3.org > March 2009

Re: Revamp HTML5 doctype sniffing?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 27 Mar 2009 19:17:53 +0000 (UTC)
To: Daniel Schattenkirchner <schattenkirchner.daniel@gmx.de>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0903271912570.25058@hixie.dreamhostps.com>
On Fri, 27 Mar 2009, Daniel Schattenkirchner wrote:
>
> When comparing the doctype sniffing of HTML 5 and Internet Explorer 
> versions 6 to 8, you notice that HTML 5 sniffs for more doctypes than IE 
> does. That is, many doctypes that trigger Quirks Mode per HTML 5 trigger 
> Full or Almost Standards Mode in Internet Explorer.
> 
> I think it would be a good decision to make HTML 5 fit IE and not IE fit 
> HTML 5.

The current list was derived with great care from the lists implemented by 
all major browsers, whoses lists where themselves derived over time with 
great care to handle legacy content. There are DOCTYPEs that trigger 
quirks mode in some browsers but not IE because IE's "standards" mode has 
historically been more equivalent to other browsers' "quirks" modes, and 
so some sites have ended up depending on this configuration. There are 
cases of the opposite also, where sites sniff for older versions of IE and 
give it different markup than is received by newer browsers.

In conclusion, I do not believe changing the sniffing algorithm at this 
point would be wise.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 27 March 2009 19:18:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:40:29 GMT