W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: A URL API

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 17 Sep 2010 17:48:15 -0700
Message-ID: <AANLkTimucea=_4ZYmioFJq6PDzeX9AmiPr7tvsGB1CJo@mail.gmail.com>
To: Adam Barth <w3c@adambarth.com>
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, Maciej Stachowiak <mjs@apple.com>, Darin Fisher <darin@chromium.org>, Julian Reschke <julian.reschke@gmx.de>, Anne van Kesteren <annevk@opera.com>, Boris Zbarsky <bzbarsky@mit.edu>, WebApps WG <public-webapps@w3.org>
On Fri, Sep 17, 2010 at 5:43 PM, Adam Barth <w3c@adambarth.com> wrote:
> I've removed the searchParameters attribute from the URL interface for
> the time being.  We can consider adding it back at a later time.

;_;

Just today my cubemate asked me if there was any way to get at the
search parameters of a URL without parsing it himself.  I replied "No,
but abarth started working on an API for it today.".

That said, Garrett's right.  The values of the dict should be arrays.
Most of the time they'll be single-element arrays, but the benefit of
having a consistent type of value at all times is better than the
benefit of being able to omit "[0]" from parts of your code.

~TJ
Received on Saturday, 18 September 2010 00:49:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT