Skip to content

Commit

Permalink
Remove U+0000 case in the fragment state
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Apr 27, 2020
1 parent 59b8993 commit 3d57401
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2260,27 +2260,21 @@ string <var>input</var>, optionally with a <a>base URL</a> <var>base</var>, opti

<dt><dfn>fragment state</dfn>
<dd>
<p>Switching on <a>c</a>:
<dl class=switch>
<dt>The <a>EOF code point</a>
<dd><p>Do nothing.

<dt>U+0000 NULL
<dd><p><a>Validation error</a>.
<ol>
<li>
<p>If <a>c</a> is not the <a>EOF code point</a>, then:

<dt>Otherwise
<dd>
<ol>
<li><p>If <a>c</a> is not a <a>URL code point</a> and not U+0025 (%),
<a>validation error</a>.

<li><p>If <a>c</a> is U+0025 (%) and <a>remaining</a> does not start with two
<a>ASCII hex digits</a>, <a>validation error</a>.

<li><p><a>UTF-8 percent encode</a> <a>c</a> using the <a>fragment percent-encode set</a>
and append the result to <var>url</var>'s <a for=url>fragment</a>.
<li><p><a>UTF-8 percent encode</a> <a>c</a> using the <a>fragment percent-encode set</a> and
append the result to <var>url</var>'s <a for=url>fragment</a>.
</ol>
</dl>
</ol>
</dl>

<li><p>Return <var>url</var>.
Expand Down

0 comments on commit 3d57401

Please sign in to comment.