[whatwg] Making URLSearchParams set() `value` argument optional
hasather at gmail.com
Wed Mar 12 03:04:25 PDT 2014
I would like to propose making the `value` argument optional for
URLSearchParams set(). This would work as set("name", ""), but
would not output the equals sign, leading to nicer URLs.
set("name", "") -> "?name="
set("name") -> "?name"
Anne van Kesteren pointed out that this is different from the
application/x-www-form-urlencoded serialization on which it currently
relies on. I'm not sure if that has any implications.
More information about the whatwg