W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] [mimesniff] Complete MIME type parsing algorithm for section 5

From: Peter Occil <poccil14@gmail.com>
Date: Sat, 25 May 2013 16:32:25 -0400
Message-ID: <A4197BEFC4924110912287C39CBAD072@PeterPC>
To: "Gordon P. Hemsley" <gphemsley@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>
I noticed two more mistakes.

Change the following:

4. Otherwise, if the current byte is "\", increment pointer by 1. Then, if 
there is a current byte, append that byte to value.
5. Otherwise, append the current byte to value.

to:

4. If the current byte is "\", increment pointer by 1. Then, if there isn't 
a current byte, if the current byte equals 0x7F, or if the current byte is 
less than 0x20 and isn't TAB (0x09), return type, subtype, and parameters.
5. Append the current byte to value.

After:

5. If pointer is equal to length, return type, subtype, and parameters.

add the following step:

5a. Advance pointer to the next byte other than 0x20 (SPACE) or 0x09 (TAB).

Take your time.

--Peter
Received on Saturday, 25 May 2013 20:33:02 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 25 May 2013 20:33:03 UTC