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

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