[whatwg/url] Setting a port on a URL that cannot have a username/password/port should return the set value (#330)

Currently, the spec says the following in the setter for `port`:
> If context object’s url cannot have a username/password/port, then return.

However, this does not match the behavior of Firefox or Chrome, which both return the _given value_ even though no change is made to the URL's port:

![image](https://user-images.githubusercontent.com/376064/27777734-7a7602be-5f83-11e7-8539-04bf6f3b4fff.png)

![image](https://user-images.githubusercontent.com/376064/27777749-a1390644-5f83-11e7-9967-29d9fa8f0f6f.png)

The WPT setter tests don't appear to test this behavior, caring only about what `port` is set to after the call to the setter.

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

Received on Monday, 3 July 2017 04:11:13 UTC