-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
I noticed there are some incompatibilities between FileAPI and mimesniff tests.
If we make Blob spec compliant, mimesniff tests will fail and viceversa
If the type member of the options argument is not the empty string, run the following sub-steps:
Let t be the type dictionary member. If t contains any characters outside the range U+0020 to U+007E, then set t to the empty string and return from these substeps.
Convert every character in t to ASCII lowercase.
e.g. #2 conflicts with the following test in mimesniff
wpt/mimesniff/mime-types/resources/mime-types.json
Lines 10 to 11 in 7da2733
| "input": "TEXT/HTML;CHARSET=GBK", | |
| "output": "text/html;charset=GBK", |
From MIME Sniffing spec:
4.4. Parsing a MIME type
To parse a MIME type, given a string input, run these steps:
- Remove any leading and trailing HTTP whitespace from input.
#1 conflicts with the following FileAPI test:
wpt/FileAPI/blob/Blob-constructor.any.js
Line 450 in 7da2733
| [[], ' image/gif ', ' image/gif '], |