Re: Revamp HTML5 doctype sniffing?

Simon Pieters wrote:
> This was a regression from Opera 9.0 due to a misanalyzed broken page 
> using the following doctype:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.0 Transitional//EN" "http://...
> 
> It triggered quirks mode in Opera 9.0 but standards mode in Gecko and 
> WebKit because we used a substring match and they matched the whole 
> thing. Note the single slash in there.
> 
> So we changed to make HTML 4.0 transitional doctypes trigger almost 
> standards mode. This broke other pages that used the proper HTML 4.0 
> transitional doctype and required quirks mode to work correctly (in 
> Opera/Gecko/WebKit, anyway).

I see, then it really is necessary to keep those doctypes trigger quirks 
mode.

Could you please tell me more about <!doctype html public> ?
It's a Full Standards Mode doctype in Opera (9.6 and latest 10 build) 
and IE. Is this also a regression or has it always been that way?

Received on Thursday, 9 April 2009 16:11:11 UTC