This seems bad:
https://github.com/w3c/web-platform-tests/blob/12d3e15e5ecae695e1216c358d613705fbff6b68/url/urltestparser.js#L18-L26
Instead of writing an algorithm to assemble href, and testing against it, instead the href strings should be in the test data. Otherwise, the test harness has to sync with https://url.spec.whatwg.org/#concept-url-serializer
Related: whatwg/url#52 jsdom/whatwg-url#22