W3C home > Mailing lists > Public > public-html@w3.org > February 2010

Re: Updated DOCTYPE versioning change proposal (ISSUE-4)

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 17 Feb 2010 17:09:36 +0200
Cc: Maciej Stachowiak <mjs@apple.com>, Toby Inkster <tai@g5n.co.uk>, Larry Masinter <masinter@adobe.com>, "public-html@w3.org" <public-html@w3.org>
Message-Id: <F90F61F8-D054-498F-BC84-B1B6A62D4B28@iki.fi>
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
On Feb 17, 2010, at 16:29, Leif Halvard Silli wrote:

> Henri Sivonen, Wed, 17 Feb 2010 15:59:48 +0200:
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//FR">
[...]
> What is the purpose of starting to treat that DOCTYPE as a quirks mode 
> trigger?

Doctype sniffing is a heuristic for detecting the era that the authoring practices of the author of the page are from.

"-//W3C//DTD HTML 3.2 Final//EN" is from the quirky era. "-//W3C//DTD HTML 3.2 Final//FR" is from the same era but edited due the author misunderstanding what the "//EN" part is for. Therefore, it doesn't make sense to treat "-//W3C//DTD HTML 3.2 Final//FR" as being from a different era than "-//W3C//DTD HTML 3.2 Final//EN".

More concretely, IIRC, Simon Pieters found that a browser that ignores the tailing EN part and checks for quirky prefixes only is more successful at rendering pages the way the pages were designed to be rendered than browsers that test for a full string match.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Wednesday, 17 February 2010 15:10:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:14 UTC