W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

Re: [whatwg] URL: URLQuery

From: Mike Dierken <mike@dierken.com>
Date: Sat, 13 Oct 2012 13:39:35 -0700
Message-ID: <CAJ689ZnAA9HYFE4XR9UfsKNhGQtJ=oSX_R7GLR=UhiCQ0nBM-w@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: WHATWG <whatwg@whatwg.org>
Since a URL query string is not a strict map with only one value for a
key, would the get/set operations allow for an array as well as an
atomic value?


On Fri, Oct 12, 2012 at 3:02 PM, Glenn Maynard <glenn@zewt.org> wrote:
>
> The object paradigm is more natural for the common case:
>
> query.values["key"] = value; // get()
> console.log(query.values["key"]); // set()
> delete query.values["key"]; // delete()
> query.getAll("key"); // stays as-is
>
Received on Saturday, 13 October 2012 20:40:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT