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

Re: [whatwg] New URL Standard

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 26 Sep 2012 03:25:23 +0000 (UTC)
To: Glenn Maynard <glenn@zewt.org>
Message-ID: <Pine.LNX.4.64.1209260324430.1904@ps20323.dreamhostps.com>
Cc: whatwg@lists.whatwg.org, Boris Zbarsky <bzbarsky@mit.edu>
On Tue, 25 Sep 2012, Glenn Maynard wrote:
> 
> What this doesn't allow is creating things like "a=1&b=2&a=3".  You can 
> create "a=1&a=2&b=3" (url.query.a = ["1","2"]; url.query.b = "3"), but 
> there's no way to split the keys (a, b, a).  This is the limitation we 
> were really talking about.  This seems unlikely to be a real problem, 
> and in the unlikely case where it's really needed, it seems fine to 
> require people to just fall back on formatting the query string 
> themselves and assign to url.search.

You could even make that work, by having a special method for appending a 
new key/value pair, and just not making it accessible.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 26 September 2012 03:25:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC