Re: [whatwg/url] Proposal: URL.setSearchParams() (Issue #828)

We could maybe add a `searchParams` a setter. I don't think we need a separate method. The one question I see is what should happen if `URLSearchParams` already has an associated URL. We'd have to decide between throwing or changing the URL association (and updating both the old and new URL). I don't think we want to end up in a situation where a single `URLSearchParams` can be associated with multiple URLs.

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

Message ID: <whatwg/url/issues/828/2126464102@github.com>

Received on Thursday, 23 May 2024 07:55:08 UTC