Re: [whatwg/fetch] Consider "extract a MIME type and compare its essence" (#856)

It's difficult to word this operation in a way that'll [=autolink=].

* If calls look like `Extract a MIME type from |headerList| and compare its essence to |essence|`, there's nowhere good to put the [==] brackets.
* If calls look like `[=Extract a MIME type and compare its essence=] from |headerList| to |essence|`, it's not very readable.

Maybe extend [Extract a MIME type](https://fetch.spec.whatwg.org/#concept-header-extract-mime-type) to take an optional "expected essence", and call it like `Let |mimeType| be the result of [=extracting a MIME type=] from |headerList| with expected essence <code>"application/essence"</code>`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/856#issuecomment-452081870

Received on Monday, 7 January 2019 21:07:09 UTC