Re: [img-conversion] canDecodeType \ canEncodeType could be supports() (#12)

Yeah, that would suck. Perhaps the spec could mandate that only MIME types of the form "image/XXX" are allowed (with no extra parameters)? If the support is mixed depending on parameters, the functions are allowed to return "maybe". The situation is similar to HTMLMediaElement's `canPlayType` which you can pass the MIME type for a WAV file which in theory could have an exotic sample rate/bit depth/etc, but in common usage will work. AFAIK no browsers bother to parse actual parameters like the sample rate or bit depth in that case, they just return "maybe" instead of "probably".

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/img-conversion/issues/12#issuecomment-142748969

Received on Wednesday, 23 September 2015 22:31:41 UTC