Skip to content

Commit

Permalink
Add a size getter to URLSearchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 23, 2023
1 parent d9fd0e7 commit 12b6f0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3673,6 +3673,8 @@ so that running the <a>URL parser</a> on the output of running the <a>URL serial
interface URLSearchParams {
constructor(optional (sequence&lt;sequence&lt;USVString>> or record&lt;USVString, USVString> or USVString) init = "");

readonly attribute unsigned long size;

undefined append(USVString name, USVString value);
undefined delete(USVString name);
USVString? get(USVString name);
Expand Down Expand Up @@ -3797,6 +3799,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>.

<p>The <dfn method for=URLSearchParams><code>append(<var>name</var>, <var>value</var>)</code></dfn>
method steps are:

Expand Down

0 comments on commit 12b6f0c

Please sign in to comment.