[whatwg/url] Ensure the API roundtrips for opaque paths (PR #728)

As opaque paths can end in U+0020, those trailing U+0020 code points need to be removed from the path when both query and fragment become null.

Tests: ...

Fixes #651.

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

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [ ] [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:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno: …
   * Node.js: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …

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

You can view, comment on, or merge this pull request online at:

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


-- Commit Summary --

  * Ensure the API roundtrips for opaque paths

-- File Changes --

    M url.bs (45)

-- Patch Links --

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

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


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/728

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/728@github.com>

Received on Friday, 16 December 2022 14:20:21 UTC