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

Re: Legacy Doctype and Doctype Versioning

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 17 Feb 2010 10:13:48 +0100
Message-ID: <4B7BB34C.4070805@gmx.de>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
CC: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>, "public-html@w3.org" <public-html@w3.org>
On 17.02.2010 10:08, Lachlan Hunt wrote:
> Leif Halvard Silli wrote:
>> Maciej Stachowiak, Wed, 20 Jan 2010 19:15:02 -0800:
>>> I suspect most people know this, but just to be clear, the HTML 4.01
>>> Strict DTD will *not* trigger quirks mode.
>> No, Maciej, this is not correct. Anymore.
>> Not in Safari 4. In the current version of Safari, this variant of the
>> strict Doctype triggers QuirksMode:
>> [<!ATTLIST P myattr CDATA #implied>]>
> This is a bogus DOCTYPE in HTML5 because there is no support for parsing
> the SGML syntax for the internal subset in the HTML serialisation. The
> HTML5 parsing algorithm states for this particular doctype, during the
> _between DOCTYPE public and system identifiers state_, when it
> encounters the '[' ("Anything else" option):
> "Parse error. Set the DOCTYPE token's force-quirks flag to on.
> Switch to the bogus DOCTYPE state."
> The _bogus DOCTYPE state_ then consumes everything up to and including
> the first '>', and then the trailing ']>' gets consumed in the _data
> state_.
> As a result, Minefield with HTML5 parsing enabled will also use quirks
> mode for this DOCTYPE.

...just trying to understand... a DOCTYPE that previously triggered 
standards mode will now (as in FF trunk + HTML5 parser) get you to 
Quirks mode?

Best regards, Julian
Received on Wednesday, 17 February 2010 09:14:27 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:58 UTC