This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28398 - <img> I want "image MIME types" to be defined
Summary: <img> I want "image MIME types" to be defined
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-03 08:42 UTC by Anne
Modified: 2016-08-11 08:01 UTC (History)
3 users (show)

See Also:


Attachments

Description Anne 2015-04-03 08:42:54 UTC
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.
Comment 1 Daniel Veditz 2016-08-11 00:02:00 UTC
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.
Comment 2 Anne 2016-08-11 07:56:27 UTC
I guess that is fair. Images are rather special in that way that we managed to keep them all under the same type.