Skip to content

Commit

Permalink
Editorial: assert that init is a string
Browse files Browse the repository at this point in the history
Fixes #439.
  • Loading branch information
annevk committed Apr 26, 2020
1 parent 980ba89 commit a75de86
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions url.bs
Expand Up @@ -3077,9 +3077,15 @@ initially null.
<var>name</var> and value is <var>value</var>, to <var>query</var>'s
<a for=URLSearchParams>list</a>.

<li><p>Otherwise, <var>init</var> is a string, then set <var>query</var>'s
<a for=URLSearchParams>list</a> to the result of
<a lt='urlencoded string parser'>parsing</a> <var>init</var>.
<li>
<p>Otherwise:

<ol>
<li><p>Assert: <var>init</var> is a string.

<li><p>Set <var>query</var>'s <a for=URLSearchParams>list</a> to the result of
<a lt='urlencoded string parser'>parsing</a> <var>init</var>.
</ol>

<li><p>Return <var>query</var>.
</ol>
Expand Down

0 comments on commit a75de86

Please sign in to comment.