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

Re: A URL API

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 20 Sep 2010 08:46:22 +0200
Message-ID: <4C97033E.5040609@gmx.de>
To: Adam Barth <w3c@adambarth.com>
CC: Devdatta Akhawe <dev.akhawe@gmail.com>, WebApps WG <public-webapps@w3.org>
On 20.09.2010 08:27, Adam Barth wrote:
> On Sun, Sep 19, 2010 at 10:48 PM, Devdatta Akhawe<dev.akhawe@gmail.com>  wrote:
>>> 1) There are now two methods for getting at the URL parameters.  The
>>
>> and none for setting them?
>
> That's correct.  Looking at various libraries, there seems to be much
> more interested in paring out query parameters than for constructing
> them.  One popular JavaScript library did have an API that took a
> dictionary and built a query string out of it.  I imagine most folks
> just use the HTML Form element.
> ...

If a new standard API is added, it also should cover construction. 
Construction is hard, due to the different escaping rules for paths, 
query parameters etc.

Keep in mind that the original use case was making life easier for 
people using XmlHttpRequest, and that covers many more use cases than forms.

Best regards, Julian
Received on Monday, 20 September 2010 06:47:01 GMT

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