This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
We already have a list of JavaScript MIME types (see bug 28397 for getting a <dfn>). I think we should have a list for images as well. Perhaps for now we should allow user agents to extend the list, but requiring a minimum of e.g. image/png and image/gif seems non-controversial. Such a definition would help me define X-Content-Type-Options in Fetch.
Why do we need a list for images? Anything with an image type (any subtype) is an image. It may be one a particular browser knows nothing about and will error out later trying to render, but it's an image. Javascript needs a list because there are multiple acceptable types mixed in with similar types that are definitely not javascript.
I guess that is fair. Images are rather special in that way that we managed to keep them all under the same type.
Thanks! https://github.com/whatwg/fetch/commit/b9ad2f5c16d5c565ce25b336d1e6f5dce0f7a066