Open marcoscaceres opened 1 year ago
New elements and fetch initiators should not sniff for MIME types! https://w3ctag.github.io/design-principles/#new-data-formats
You should require a Content-Type
value, and interpret the given content as the server describes. If it fails to parse as that indicated type, or if no type is given, then treat it as a loading error.
Ah, thanks! I'll change this to "enforce MIME type(s)".
Need to describe how we sniff for MIME types in [MIMESNIFF]. See also IANA "model" types. We might need specific rules for sniffing.