Re: [whatwg/url] It is unlikely that the spec's two definitions of valid URL strings are equal (Issue #704)

domenic left a comment (whatwg/url#704)

It seems like Claude missed a few, and also the recent fixes introduced some new classes of divergence. https://github.com/jsdom/whatwg-url/blob/main/test/validation.js has the details and all the test cases so far, and here's a list of Live URL Viewer links for them.

- [`foo://:80`](https://jsdom.github.io/whatwg-url/#url=Zm9vOi8vOjgw&base=YWJvdXQ6Ymxhbms=)
- [`foo://h@x`](https://jsdom.github.io/whatwg-url/#url=Zm9vOi8vaEB4&base=YWJvdXQ6Ymxhbms=)
- [`foo://h:8x`](https://jsdom.github.io/whatwg-url/#url=Zm9vOi8vaDo4eA==&base=YWJvdXQ6Ymxhbms=)
- [`//:80` against base `https://example.com/`](https://jsdom.github.io/whatwg-url/#url=Ly86ODA=&base=aHR0cHM6Ly9leGFtcGxlLmNvbS8=)
- [`//h:8x` against base `foo://example.com/`](https://jsdom.github.io/whatwg-url/#url=Ly9oOjh4&base=Zm9vOi8vZXhhbXBsZS5jb20v)
- [`//:80` against base `file:///tmp/`](https://jsdom.github.io/whatwg-url/#url=Ly86ODA=&base=ZmlsZTovLy90bXAv)
- [`file://host/C:/demo`](https://jsdom.github.io/whatwg-url/#url=ZmlsZTovL2hvc3QvQzovZGVtbw==&base=YWJvdXQ6Ymxhbms=)
- [`/C:/path` against base `file://server/tmp/`](https://jsdom.github.io/whatwg-url/#url=L0M6L3BhdGg=&base=ZmlsZTovL3NlcnZlci90bXAv)
- [(empty string) against base `foo:opaque`](https://jsdom.github.io/whatwg-url/#url=&base=Zm9vOm9wYXF1ZQ==)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/704#issuecomment-4851522899
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/704/4851522899@github.com>

Received on Wednesday, 1 July 2026 07:33:49 UTC