This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://url.spec.whatwg.org/#parsing [[ If url's scheme is not "file", set url's host to base's host and url's port to base's port. file:/example.org/ ]] The example for the "scheme is not "file", ..." uses a file url. Strange.
Well, clearly I'm an idiot for thinking that example would be enough. It was introduced here: https://github.com/whatwg/url/commit/68468e10868914541ca4b36542d413e081916f14 Attempted to clarify it a bit here: https://github.com/whatwg/url/commit/e3820283d2ca3526b17d9037b86be3d06d2d3b7a file URL parsing in general needs to be more carefully studied. See bug 23550.