Hi Maté and all, There is a pre-existing userland implementation of WHATWG-URL at <https://github.com/TRowbotham/URL-Parser>. Packagist reports 600K+ downloads <https://packagist.org/packages/rowbot/url>. It is from Trevor Rowbotham, who is acknowledged in the WHATWG-URL specification itself <https://url.spec.whatwg.org/#acknowledgments>.
(There is one alternative implementation, <https://packagist.org/packages/esperecyan/url> <https://github.com/esperecyan/url>, but it does not look as recent or robust.) If we want a full-featured WHATWG-URL implementation in core, would it not be preferable (with Trevor's permission) to convert rowbot/url from userland to core instead? Surely conversion from an existing, well-tested, widely-used implementation would be easier/better/faster than writing an implementation from scratch. -- pmj