[whatwg/url] Non-special URLs were not idempotent (#505)

Adjust the URL serializer so it does not output something which during the next parse operation would yield a host.

whatwg-url: ...

Tests: ...

Fixes #415.

@zealousidealroll what do you think?

<!--
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/master/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: …
   * Firefox: …
   * Safari: …

(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/505


-- Commit Summary --

  * Non-special URLs were not idempotent

-- File Changes --

    M url.bs (25)

-- Patch Links --

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

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

Received on Saturday, 9 May 2020 16:14:16 UTC