Re: [whatwg/url] the urlencoded spec did not described tuples of which the name includes square brackets (#556)

> 
> 
> I'm not sure what you mean?
> 
> ```js
> x = new URLSearchParams("test+test=x+x");
> console.log(x.get("test test")) // "x x"
> ```

Yes! `decodeURIComponent` don't replement `+`. 
I my option, It's just like:
`decodeURIComponent()` = replace `+` | percent decode | UTF-8 decode, 
`URLSearchParams.prototype.toString()` = percent decode | UTF-8 decode
Is there a scenario we prefer `encode/decodeURIComponent` than `URLSearchParams`?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/556#issuecomment-712650576

Received on Tuesday, 20 October 2020 07:23:48 UTC