[url] file: URL with a port number through the host setter (#97)

When the `Url::host` setter is invoked for an URL in the `file` scheme, the parser starts in the "host state" (not the "file host state") so the URL can (per spec) end up with a non-null port number, which otherwise never happens.

In this test case: http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3927 Firefox doesn’t change the URL at all, Chromium changes the host but not the port number.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/97

Received on Tuesday, 1 March 2016 17:02:45 UTC