W3C home > Mailing lists > Public > public-html@w3.org > August 2008

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

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 17 Aug 2008 23:45:40 +0000 (UTC)
To: Geoffrey Sneddon <foolistbar@googlemail.com>
Cc: public-html Group <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0808172344270.9667@hixie.dreamhostps.com>

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:57 UTC