Re: [whatwg/url] Enumerate differences between URLSearchParams and search (#495)

@domenic commented on this pull request.



> @@ -3102,6 +3102,23 @@ let params = new URLSearchParams({key: "730d67"})
 params.toString() // "key=730d67"</code></pre>
 </div>
 
+<div class=note>
+ <p>As {{URLSearchParams}} objects use the <a><code>application/x-www-form-urlencoded</code></a>
+ format underneath there are some difference with how it encodes certain code points compared to
+ {{URL/search}}.

True, although I think explicitly comparing the `searchParams` API to the `href` and `search` APIs is helpful. But if there are examples then it's less important.

-- 
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/pull/495#discussion_r420244663

Received on Tuesday, 5 May 2020 16:32:35 UTC