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

Re: [whatwg] URL: URLQuery

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 30 Nov 2012 09:42:54 -0800
Message-ID: <CAAWBYDDwQ47tsZABaiOGEOt1rgXU3Px5WEZ8iFPGTGnuSA4kCA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>
On Fri, Nov 30, 2012 at 9:17 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Sat, Oct 13, 2012 at 12:24 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> If we do stick with the method-based map, I strongly feel we should
>> match the JS Map API, and have a has() method as well.  *Ideally*,
>> this would be a subclass of Map.
>
> This is now done: http://url.spec.whatwg.org/#urlquery
>
> Feedback welcome!

Only feedback left is the return types of set(), append(), and delete().

In Maps, set() returns the map, so you can chain more easily.  TC39
hasn't yet made delete() return the map, but they plan to (baby steps,
apparently, but us jumping on it will help).  Obviously, append()
should match set().

~TJ
Received on Friday, 30 November 2012 18:02:06 GMT

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