[whatwg] MIME Sniffing spec - http://mimesniff.spec.whatwg.org/

Daniel Glazman daniel.glazman at disruptive-innovations.com
Sat Oct 22 01:09:21 PDT 2011


Le 21/10/11 22:19, Adam Barth a écrit :

> Thanks.  Fixed.

Speaking of that document, I notice section 4 forces the presence of a 
whitespace after the semi-colon preceeding the parameter, eg:

   text/plain; charset=iso-8859-1

This is wrong. Nothing in the MIME or the HTTP specs says such a
whitespace is mandatory. Whitespace is explicitely forbidden between
type and subtype, between parameter-name and parameter-value, but that's
all. AFAIC, |text/plain;charset=iso-8859-1| is perfectly valid and
|text/plain   ;     charset=iso-8859-1| is perfectly valid too.

</Daniel>



More information about the whatwg mailing list