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

Fixes #601.

<!--
Thank you for contributing to the URL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [x] At least two implementers are interested (and none opposed):
   * Firefox (already implemented)
   * Safari (already implemented)
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * …
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: https://crbug.com/1018721


(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)


<!--
    This comment and the below content is programatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/url/604.html" title="Last updated on May 17, 2021, 8:30 PM UTC (081f235)">Preview</a> | <a href="https://whatpr.org/url/604/0915d88...081f235.html" title="Last updated on May 17, 2021, 8:30 PM UTC (081f235)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/604


-- Commit Summary --

  * Make hostname setter return failure if a port is given

-- File Changes --

    M url.bs (2)

-- Patch Links --

https://github.com/whatwg/url/pull/604.patch

https://github.com/whatwg/url/pull/604.diff


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

Received on Monday, 17 May 2021 20:30:44 UTC