[whatwg/url] Switching from "file" to special scheme when host is empty (#270)

Sample:
```
var url = new URL('file:///path');
url.protocol = 'http:';
```
Current result: `http:///path`; and after re-parse `host` gets "path" value...

I see two variants how to resolve this issue:
1. Change `host` to "localhost"
2. Or disallow such switch

Related to #259 / #269

-- 
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/270

Received on Friday, 10 March 2017 10:32:38 UTC