immersive-web / model-element

Repository for the <model> tag. Feature leads: Marcos Cáceres and Laszlo Gombos
https://immersive-web.github.io/model-element/
Other
62 stars 11 forks source link

Enforce MIME types #38

Open marcoscaceres opened 1 year ago

marcoscaceres commented 1 year ago

Need to describe how we sniff for MIME types in [MIMESNIFF]. See also IANA "model" types. We might need specific rules for sniffing.

domenic commented 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.

marcoscaceres commented 1 year ago

Ah, thanks! I'll change this to "enforce MIME type(s)".