[whatwg/url] File URL reparse issue (#549)

URLs to test:
`file:.//p`
`file:/.//p`

I pass: `file:///.//p`
II pass: `file:////p`

It seems there is a bug in the URL serializer. When parsing first time, host is set to null, so URL serializer serializes path as it does with not special URL -  in the 5.1. step it adds `/.` to the output. When parsing second time, host is empty, 5.1. conditions are not meet, so `/.` is not added, and now result is as expected.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/549

Received on Monday, 5 October 2020 16:52:28 UTC