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
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.