W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: URLQuery / FormData

From: Brandon Benvie <bbenvie@mozilla.com>
Date: Tue, 10 Sep 2013 09:23:39 -0700
Message-ID: <522F478B.2050905@mozilla.com>
To: public-script-coord@w3.org
On 9/10/2013 7:44 AM, Domenic Denicola wrote:
> Finally, only tangentially related: what is your plan for
>
> ```js
> const q = new URLQuery();
> q.append('key', 'val1');
> q.get('key').push('val2');
> q.get('key')[999] = 'val999';
> ```
>
> ? I feel like this could be made to work for composing a URLQuery meant for serialization, but would be tricky if the URLQuery is representing the browser's actual URL and changing it is supposed to change the URL. A "returns frozen arrays" mode may be necessary.

It seems like the values want to be a Set, not an Array.
Received on Tuesday, 10 September 2013 16:24:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC