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

Re: URLQuery / FormData

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 10 Sep 2013 17:35:44 +0200
Message-ID: <CA+c2ei9830MuE7-g5Rkw+_bZUVc_UwUx62z8ZV7EH6upOc8Ywg@mail.gmail.com>
To: Domenic Denicola <domenic@domenicdenicola.com>
Cc: Anne van Kesteren <annevk@annevk.nl>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Tue, Sep 10, 2013 at 5:18 PM, Domenic Denicola
<domenic@domenicdenicola.com> wrote:
> From: Anne van Kesteren [annevk@annevk.nl]
>> The array returned would be a copy of the underlying values and modifying it would not modify URLQuery. Similar if we keep the name getAll() for that.
> So `q.get('key') !== q.get('key')`? That would make this even more un-Map-like.

That would be the case in the API that Anne proposes at the beginning
of this thread. It would not be the case in the API that is currently
drafted. However in the API that's currently drafted

q.getAll('key') !== q.getAll('key');

would test true.

I agree that returning the same Array would be nice. However that
seems really hard to do while also exposing the fact that the
name/value pairs aren't always grouped by the same name.

/ Jonas
Received on Tuesday, 10 September 2013 15:36:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:18 UTC