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

The essential point of this issue report is that whether the latter part of the below is correct or not: Errors should be thrown when an invalid URL string is passed to the constructor, and also errors should be thrown too when an invalid property is set to the instance of the URL.

If `x = new URL("https://test/"); x.href = "https://test:test/"` is supposed to throw, then we could consider about the case to change its protocol that makes `href` invalid imo.

-- 
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-282493468

Received on Saturday, 25 February 2017 16:08:58 UTC