Re: Trailing slash in doctype

I just rewrote WebKit's DOCTYPE parsing from scratch to be HTML5- 
compliant, so you may want to test and see if WebKit changed its  
behavior in the latest nightly when compared with Safari 3.  I'm  
definitely interested in any cases where the two diverge now after the  
rewrite.

dave
(hyatt@apple.com)

On Feb 27, 2008, at 12:32 PM, Philip Taylor wrote:

>
> http://www.mobile.de/ (from the Alexa Top 500 list) says:
>
>    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd 
> " />
>
> IE, Firefox and Opera (I've not tested Safari) treat that as  
> standards mode. HTML5 says it must be treated as quirks mode, since  
> the trailing slash is a syntax error and sets the 'incorrect' flag  
> during tokenisation. Is this likely to be a compatibility problem  
> that HTML5 should avoid?
>
> Relatedly, http://www.gamespy.com/ says:
>
>    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
> SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
>
> which is standards mode in IE, quirks mode in Firefox and Opera, and  
> quirks mode in HTML5.
>
> I see '..." />' on roughly 0.02% of pages from dmoz.org, and  
> (excluding gamespy.com) I see '..."/>' on roughly a quarter of that,  
> so it's not a very widespread issue but it does exist.
>
> -- 
> Philip Taylor
> pjt47@cam.ac.uk
>

Received on Wednesday, 27 February 2008 18:54:09 UTC