See https://github.com/whatwg/url/pull/505 for the URL Standard change and https://github.com/web-platform-tests/wpt/pull/25113 for new tests.
<rdar://problem/68056814>
Sorry I missed a lot of the discussion here. Idempotence is good, but adding a dot is a little strange. Were alternative solutions considered?
Yeah, see the discussion in https://github.com/whatwg/url/issues/415. But solution seemed best (and had precedent in an implementation) as it would not lead to the introduction of a host where there was none.
Created attachment 410014 [details] Patch
Comment on attachment 410014 [details] Patch This first patch is close but not quite perfect. It's tricky in an implementation that serializes while parsing and tries to use the same string if possible.
Created attachment 410190 [details] Patch
http://trac.webkit.org/r267837