Re: [whatwg/url] Add a size getter to URLSearchParams (PR #734)

@jasnell commented on this pull request.



> @@ -3484,6 +3486,9 @@ constructor steps are:</p>
  <li><p><a for=URLSearchParams>Initialize</a> <a>this</a> with <var>init</var>.
 </ol>
 
+<p>The <dfn attribute for=URLSearchParams><code>size</code></dfn> getter steps are to return
+<a>this</a>'s <a for=URLSearchParams>list</a>'s <a for=list>size</a>.

I may have missed the nuance here. My interpretation of `size` is that it should return the total number of elements that would be returned by the iterator. Is that understanding correct? And if not, I think that's what it should be.

/cc @lucacasonato

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/734#pullrequestreview-1271274506
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/734/review/1271274506@github.com>

Received on Thursday, 26 January 2023 15:29:40 UTC