Re: Content-Type sniffing: unknown type mask including 00 at end

On Sun, 10 Aug 2008, Geoffrey Sneddon wrote:
> 
> For the BOMs in the table, the mask contains one or more 00 bytes, which 
> seems completely pointless: they will always return 00 with and, thus 
> meaning that it has absolutely no affect on the result, so why bother 
> having it in the table?

They do have an effect. They set a minimum length for the source text. 
e.g. EF BB BF 00 with mask FF FF FF 00 can never match a three-byte input 
file.

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

Received on Sunday, 17 August 2008 23:46:06 UTC