[web-nfc] Use MIMESNIFF instead of RFC2046 for some things

domenic has just created a new issue for https://github.com/w3c/web-nfc:

== Use MIMESNIFF instead of RFC2046 for some things ==
Although RFC2046 defines MIME types in general, and is good at that, for rigorous parsing, serialization, classification, and discussion of the MIME type's components, we have https://mimesniff.spec.whatwg.org/.

In particular https://w3c.github.io/web-nfc/#dfn-json-compatible-iana-media-type seems like it can be replaced with https://mimesniff.spec.whatwg.org/#json-mime-type . Any talk of "validity" can be replaced with https://mimesniff.spec.whatwg.org/#parse-a-mime-type or https://mimesniff.spec.whatwg.org/#parse-a-mime-type-from-bytes , which then gives you a specification data structure to talk about. E.g. https://w3c.github.io/web-nfc/#mapping-string-to-ndef could become much more rigorous, doing parsing and then introspecting the components.

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/158 using your GitHub account

Received on Saturday, 29 September 2018 01:23:31 UTC