[whatwg/url] Prevent the pathname setter from erasing the path of path-only URLs, … (#582)

…as that would make them cannot-be-a-base URLs.

Fixes #581 

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

(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/582.html" title="Last updated on Feb 21, 2021, 10:26 PM UTC (1307d7a)">Preview</a> | <a href="https://whatpr.org/url/582/557567c...1307d7a.html" title="Last updated on Feb 21, 2021, 10:26 PM UTC (1307d7a)">Diff</a>
You can view, comment on, or merge this pull request online at:

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


-- Commit Summary --

  * Prevent the pathname setter from erasing the path of path-only URLs, as that would make them cannot-be-a-base URLs.

-- File Changes --

    M url.bs (4)

-- Patch Links --

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

https://github.com/whatwg/url/pull/582.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/582

Received on Sunday, 21 February 2021 22:27:16 UTC