Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove U+0000 case in the fragment state #486

Merged
merged 1 commit into from
Apr 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2256,27 +2256,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