MIME types: do not trim trailing whitespace in parameter names

Issue #14141833 • Assigned to Scott L.

Details

Author
Anne v.
Created
Oct 9, 2017
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

For a MIME type “text/html;charset =gbk” the parameter should not be recognized as “charset” since it’s "charset ". All browsers trim whitespace for values, not but not all do for names. In particular neither Firefox nor Safari trim whitespace for names.

It seems best to align with Firefox and Safari as that’s closer to the RFC and therefore also more likely to match non-browser implementations.

See https://github.com/whatwg/mimesniff/issues/34

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Scott L.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in