- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Sat, 13 Oct 2012 23:11:38 +0200
- To: Mike Dierken <mike@dierken.com>
- Cc: WHATWG <whatwg@whatwg.org>, Glenn Maynard <glenn@zewt.org>
On Sat, Oct 13, 2012 at 10:39 PM, Mike Dierken <mike@dierken.com> wrote: > 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? Yes, see http://url.spec.whatwg.org/#urlquery get(): gets the first value. getAll(): gets all values. set(name, value): sets name to a single value. set(name, [value, value]): sets name to multiple values. (We might want to make this variadic instead I think?) delete(name): removes name and all its values. -- http://annevankesteren.nl/
Received on Saturday, 13 October 2012 21:12:09 UTC