Closed lpinca closed 2 years ago
If the userinfo is present but empty, the parsed host is also empty, and url.pathname is not '/', then readd the empty userinfo to url.href, otherwise the original invalid URL might be transformed into a valid one with url.pathname as host.
url.pathname
'/'
url.href
If the userinfo is present but empty, the parsed host is also empty, and
url.pathname
is not'/'
, then readd the empty userinfo tourl.href
, otherwise the original invalid URL might be transformed into a valid one withurl.pathname
as host.