Skip to content

Commit 3d57401

Browse files
authored
Remove U+0000 case in the fragment state
Tests: web-platform-tests/wpt#23256. Fixes #440.
1 parent 59b8993 commit 3d57401

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

url.bs

+6-12
Original file line numberDiff line numberDiff line change
@@ -2260,27 +2260,21 @@ string <var>input</var>, optionally with a <a>base URL</a> <var>base</var>, opti
22602260

22612261
<dt><dfn>fragment state</dfn>
22622262
<dd>
2263-
<p>Switching on <a>c</a>:
2264-
<dl class=switch>
2265-
<dt>The <a>EOF code point</a>
2266-
<dd><p>Do nothing.
2267-
2268-
<dt>U+0000 NULL
2269-
<dd><p><a>Validation error</a>.
2263+
<ol>
2264+
<li>
2265+
<p>If <a>c</a> is not the <a>EOF code point</a>, then:
22702266

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

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

2280-
<li><p><a>UTF-8 percent encode</a> <a>c</a> using the <a>fragment percent-encode set</a>
2281-
and append the result to <var>url</var>'s <a for=url>fragment</a>.
2274+
<li><p><a>UTF-8 percent encode</a> <a>c</a> using the <a>fragment percent-encode set</a> and
2275+
append the result to <var>url</var>'s <a for=url>fragment</a>.
22822276
</ol>
2283-
</dl>
2277+
</ol>
22842278
</dl>
22852279

22862280
<li><p>Return <var>url</var>.

0 commit comments

Comments
 (0)