[whatwg] The bogus doctype state and doctype sniffing

Ian Hickson ian at hixie.ch
Thu Jun 21 16:39:00 PDT 2007


On Tue, 5 Jun 2007, Henri Sivonen wrote:
>
> The bogus doctype state does not work as a sufficient spec for parsers 
> that need to extract the kind of information that is needed for 
> browser-compatible doctype sniffing.
> 
> I suggest amending the bogus doctype state with substates that match 
> dbaron's doctype sniffing algorithm from Gecko, because in addition to 
> Gecko, WebKit uses that algorithm and Opera 9 uses something that is 
> mostly equivalent (subject to corner case differences induced apparently 
> by blackbox reverse engineering).

Done. (Webkit apparently doesn't use exactly what Gecko uses, btw.)

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



More information about the whatwg mailing list