Re: Parsing: Trailing garbage in doctype FPI (was: Re: Doctype usage data)

On Mon, 3 Mar 2008, Simon Pieters wrote:
> > 
> > I've got some data about doctypes at 
> > http://philip.html5.org/data/doctypes.html (125K pages from dmoz.org) 
> > and http://philip.html5.org/data/doctypes-alexa.html (about 400 from 
> > Alexa's list). I'm not entirely sure what this could be useful for, 
> > but I'll point out a couple of things here.
> 
> [...] This means that Opera would break about 0.05% of pages of this 
> sample if we implemented HTML5 doctype switching, assuming that the 
> remaining pages I didn't look at were the same.
> 
> I think this is pretty convincing that HTML5 needs to ignore what is in 
> place of the "EN" at the end of the FPIs, that is instead of matching 
> that the FPI is e.g. -//W3C//DTD HTML 3.2//EN, check that it starts with 
> -//W3C//DTD HTML 3.2//.
> 
> For the FPIs that end in //EN//2.0 and the like, I'd suggest to just 
> drop them from the list since there are equivalent FPIs that end in //EN 
> and the //2.0 would be treated as trailing garbage.

Done.

This is quite a major change. I would like feedback from vendors about 
this change.

   http://www.whatwg.org/specs/web-apps/current-work/#the-initial

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 23 May 2008 03:20:02 UTC