[whatwg] New URL Standard

Ian Hickson ian at hixie.ch
Tue Sep 25 20:25:23 PDT 2012


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list