[whatwg/url] Make URLSearchParams' record constructor more flexible (#204)

Now that #27 is merged, creation of `URLSearchParams` objects from an object/record has gotten a lot easier. However, one problem with the new syntax is that duplicated keys are not allowed with this new syntax.

I propose making the following change to the type of `init` parameter of the URLSearchParams constructor, so that more complex objects a la Node.js' [querystring](https://nodejs.org/api/querystring.html) module:

```diff
-(sequence<sequence<USVString>> or record<USVString,  USVString                        > or USVString)
+(sequence<sequence<USVString>> or record<USVString, (USVString or sequence<USVString>)> or USVString)
```

This way, Node.js users will be able to easily interoperate between `URLSearchParams` objects with native querystring module.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/204

-- Commit Summary --

  * Make URLSearchParams' record constructor more flexible

-- File Changes --

    M url.bs (16)

-- Patch Links --

https://github.com/whatwg/url/pull/204.patch
https://github.com/whatwg/url/pull/204.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/url/pull/204

Received on Sunday, 15 January 2017 00:34:48 UTC