Re: [whatwg/url] username/password/port should be removed when "file" is added as scheme (#259)

I just noticed that `URL` allows adding an invalid URL into `href`:
```js
var url = new URL('http://example.com');
url.href = 'file://user:pass%40foo.bar.com:21/aaa/zzz?l=24#test';
```
Then issue is not an exception anymore. Fair enough :)

Thanks, I'm going to close this as resolved.

-- 
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/259#issuecomment-282492576

Received on Saturday, 25 February 2017 15:55:37 UTC