[whatwg/url] URLSearchParams.sort appends equal sign to params inside search property (#541)

Turning `http://example.com/?b&a` into an url and sorting its search params append an equal sign to every param in the search property. So `url.search` with `?a` becomes `?a=`.

According to [the spec](https://url.spec.whatwg.org/#concept-urlencoded-serializer) this is by design but I wonder if we could this optional?

Repl: https://repl.it/@muuvmuuv/issue-url-searchparams

Related to: https://github.com/sindresorhus/normalize-url/issues/112

-- 
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/541

Received on Tuesday, 8 September 2020 07:01:44 UTC