Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict between FileAPI and mimesniff tests. #36377

Open
marcosc90 opened this issue Oct 10, 2022 · 0 comments
Open

conflict between FileAPI and mimesniff tests. #36377

marcosc90 opened this issue Oct 10, 2022 · 0 comments

Comments

@marcosc90
Copy link
Contributor

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:

  1. 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.

  2. Convert every character in t to ASCII lowercase.

e.g. #2 conflicts with the following test in mimesniff

"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:

  1. Remove any leading and trailing HTTP whitespace from input.

#1 conflicts with the following FileAPI test:

[[], ' image/gif ', ' image/gif '],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants