From 4ce59409defad2b5868d40a0517228478dca1787 Mon Sep 17 00:00:00 2001 From: Karl <5254025+karwa@users.noreply.github.com> Date: Sun, 21 Feb 2021 22:58:37 +0100 Subject: [PATCH 1/2] Prevent the pathname setter from erasing the path of path-only URLs, as that would make them cannot-be-a-base URLs. --- url.bs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/url.bs b/url.bs index eb11bed4..957e753a 100644 --- a/url.bs +++ b/url.bs @@ -2298,6 +2298,10 @@ these steps:
  • If c is not U+002F (/), then decrease pointer by 1. + +

  • Otherwise, if state override is given and url's + host is null, append the empty string to url's + path

    path state @@ -3439,6 +3443,7 @@ Jeffrey Yasskin, Joe Duarte, Joshua Bell, Jxck, +Karl Wagner, 田村健人 (Kent TAMURA), Kevin Grandon, Kornel Lesiński, From 405c917015760aa69837bb3d689ba4a0cc713020 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 17 Jun 2021 10:11:45 +0200 Subject: [PATCH 2/2] nits --- url.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url.bs b/url.bs index 957e753a..2e61f905 100644 --- a/url.bs +++ b/url.bs @@ -2300,8 +2300,8 @@ these steps:
  • Otherwise, if state override is given and url's - host is null, append the empty string to url's - path + host is null, append the empty string to url's + path.

    path state