Re: [url] Let's strip leading '?' if present in `URLSearchParams` init string param (#81)

The way `.search` adds the `?` is very weird and catches me out a lot, but I'm not sure what this magic buys us.

Sure, it works around `new URLSearchParams(location.search)`, but when would you do that vs `location.searchParams`?

If this is being driven by Chrome having shipped `URLSearchParams` but not yet `url.searchParams`, it seems like a short term bandaid.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/81#issuecomment-183615421

Received on Saturday, 13 February 2016 07:29:46 UTC