Re: [fetch] Mechanism to indicate "destination context" (#64)

Another run at it:

* Else, if the request contains `type` attribute whose value is a [valid MIME type](http://www.w3.org/TR/html5/infrastructure.html#valid-mime-type), let `type-token` and `subtype-token` be the [parsed values of the valid MIME type](https://tools.ietf.org/html/rfc7231#section-3.1.1), and let the return value be the first matching statement:

  * If `type-token` is equal to "image":
    * `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
  * If `type-token` is equal to "application", and `subtype-token` is equal to "xhtml+xml" or "xml". Or, if `type-token` is equal to "text", and `subtype-token` is equal to "html":
    * `text/html,application/xhtml+xml,application/xml;q=0.9,*`
  * If `type-token` is equal to "text", and `subtype-token` is equal to "css":
    * `text/css,*/*;q=0.1`
  * Otherwise, default to
     * `*/*`

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/64#issuecomment-115985753

Received on Saturday, 27 June 2015 08:33:13 UTC