From 3d574017081f6594ce1fa7a5107027c83dbe931f Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 27 Apr 2020 18:49:26 +0200 Subject: [PATCH] Remove U+0000 case in the fragment state Tests: https://github.com/web-platform-tests/wpt/pull/23256. Fixes #440. --- url.bs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/url.bs b/url.bs index cd2d894a..b06277f5 100644 --- a/url.bs +++ b/url.bs @@ -2260,16 +2260,10 @@ string input, optionally with a base URL base, opti
fragment state
-

Switching on c: -

-
The EOF code point -

Do nothing. - -

U+0000 NULL -

Validation error. +

    +
  1. +

    If c is not the EOF code point, then: -

    Otherwise -
    1. If c is not a URL code point and not U+0025 (%), validation error. @@ -2277,10 +2271,10 @@ string input, optionally with a base URL base, opti

    2. If c is U+0025 (%) and remaining does not start with two ASCII hex digits, validation error. -

    3. UTF-8 percent encode c using the fragment percent-encode set - and append the result to url's fragment. +

    4. UTF-8 percent encode c using the fragment percent-encode set and + append the result to url's fragment.

    -
+
  • Return url.