Re: [whatwg/url] Make hostname state return failure if a port is given (#604)

@annevk I agree that more location tests would be useful, though to be fair, Chrome doesn't exactly follow the current spec:

![Screenshot from 2021-05-19 04-58-59](https://user-images.githubusercontent.com/1538624/118809001-1605d780-b878-11eb-86e0-5650578d9e53.png)

And if the current URL doesn't have a port while the `hostname` has a port, the hostname's port is used.

In fact, all the Location properties could probably use some more setter tests.

----

By the way, I don't have write permissions to this repo, so you'll have to merge this PR.

-- 
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/pull/604#issuecomment-844037269

Received on Wednesday, 19 May 2021 12:05:18 UTC