Re: [whatwg/url] searchParams.set("param", undefined) should not stringify as param=undefined (#427)

thnx @annevk !
you mean this part, right?

> 2. If bytes contains a 0x3D (=), then let name be the bytes from the start of bytes up to but excluding its first 0x3D (=), and let value be the bytes, if any, after the first 0x3D (=) up to the end of bytes. If 0x3D (=) is the first byte, then name will be the empty byte sequence. **If it is the last, then value will be the empty byte sequence.**
> 3. Otherwise, let name have the value of bytes and **let value be the empty byte sequence**.

Since it is in spec and any change there would be breaking I I then propose to have a formatting option like:
`.toString({ concise: true })`

I added a new proposal here: https://github.com/whatwg/url/issues/469

-- 
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/427#issuecomment-600561007

Received on Wednesday, 18 March 2020 11:08:09 UTC