MIME types: do not trim trailing whitespace in parameter names

Confirmed Issue #14141833 • Assigned to Travis L.


Anne v.
Oct 9, 2017
This issue is public.
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


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Scott L.”

      Changed Assigned To to “travil”

      Changed Assigned To from “travil” to “Travis L.”

      Changed Status to “Confirmed”

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

    Sign in