Skip to content

Commit

Permalink
Remove trailing ? when updating URLSearchParams
Browse files Browse the repository at this point in the history
annevk authored Jul 14, 2017
1 parent 016f67f commit 4315826
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions url.bs
Original file line number Diff line number Diff line change
@@ -2926,10 +2926,18 @@ initially null.
</ol>

<p>A {{URLSearchParams}} object's
<dfn for=URLSearchParams id=concept-urlsearchparams-update>update steps</dfn> are to set
<a for=URLSearchParams>url object</a>'s <a for=URL>url</a>'s <a for=url>query</a> to the
<a lt='urlencoded serializer'>serialization</a> of {{URLSearchParams}} object's
<a for=URLSearchParams>list</a>.
<dfn for=URLSearchParams id=concept-urlsearchparams-update>update steps</dfn> are to run these
steps:

<ol>
<li><p>Let <var>query</var> be the <a lt="urlencoded serializer">serialization</a> of
{{URLSearchParams}} object's <a for=URLSearchParams>list</a>.

<li><p>If <var>query</var> is the empty string, then set <var>query</var> to null.

<li><p>Set <a for=URLSearchParams>url object</a>'s <a for=URL>url</a>'s <a for=url>query</a> to
<var>query</var>.
</ol>

<p>The <dfn constructor for=URLSearchParams><code>URLSearchParams(<var>init</var>)</code></dfn>
constructor, when invoked, must run these steps:</p>

0 comments on commit 4315826

Please sign in to comment.