- From: swhiteman <notifications@github.com>
- Date: Sat, 03 Jan 2026 22:11:51 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 4 January 2026 06:11:55 UTC
swhiteman left a comment (whatwg/url#893)
> You can validate by simply doing something like this: `new URL(string).href == string`.
Hmm, not really. For one, the scheme and hostname are canonicalized to lowercase.
```javascript
new URL("HTTPS://EXAMPLE.COM?a=b").href == "HTTPS://EXAMPLE.COM?a=b" // false
```
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/893#issuecomment-3707774803
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/url/issues/893/3707774803@github.com>
Received on Sunday, 4 January 2026 06:11:55 UTC