Re: [whatwg/url] Percent encoding examples seem to be wrong (Issue #895)

ChALkeR left a comment (whatwg/url#895)

Also, Chrome disagrees with spec on `'` not being included:

```
const u = new URL('https://example.com')
Array.from({ length: 128 }, (_, i) => String.fromCharCode(i)).slice(0x20, -1).filter((c) => (u.username = c, u.username !== c)).join('')
```

```
Node.js:
' "#/:;<=>?@[\\]^`{|}'

Deno:
' "#/:;<=>?@[\\]^`{|}'

whatwg-url:
' "#/:;<=>?@[\\]^`{|}'

Safari:
' "#/:;<=>?@[\\]^`{|}'

Firefox:
' "#/:;<=>?@[\\]^`{|}'

Chrome:
' "#\'/:;<=>?@[\\]^`{|}'
```

They all agree on `\` being included though

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

Message ID: <whatwg/url/issues/895/3794111748@github.com>

Received on Saturday, 24 January 2026 07:41:37 UTC