[whatwg/fetch] Update query parameters example (#1011)

The current [example for using query parameters](https://fetch.spec.whatwg.org/#fetch-blob-example) **writes** to the [`searchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams) property of [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL), which is now [**readonly**](https://www.fxsitecompat.dev/en-CA/docs/2015/urlutils-searchparams-is-now-readonly/). This patch updates the example to make use of [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams) to set query parameters instead.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1011

-- Commit Summary --

  * Update query parameters example
  * Add acknowledgement

-- File Changes --

    M fetch.bs (6)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1011.patch
https://github.com/whatwg/fetch/pull/1011.diff

-- 
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/pull/1011

Received on Thursday, 26 March 2020 19:47:31 UTC