[whatwg/url] Url encoding examples seem wrong (Issue #895)

ChALkeR created an issue (whatwg/url#895)

### What is the issue with the URL Standard?

https://url.spec.whatwg.org/#example-percent-encode-operations:

> [Percent-encode after encoding](https://url.spec.whatwg.org/#string-percent-encode-after-encoding) with [ISO-2022-JP](https://encoding.spec.whatwg.org/#iso-2022-jp), input, and the [userinfo percent-encode set](https://url.spec.whatwg.org/#userinfo-percent-encode-set) | "¥" | "%1B(J\\%1B(B"
> -- | -- | --


But https://url.spec.whatwg.org/#userinfo-percent-encode-set:
> The userinfo percent-encode set is the [path percent-encode set](https://url.spec.whatwg.org/#path-percent-encode-set) and U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), U+005B ([) to U+005D (]), inclusive, and U+007C (|).

> U+005B ([) to U+005D (]), inclusive

This includes `U+005C (\)`

It can't be left unescaped as the result of `Percent-encode after encoding` with `userinfo percent-encode set`

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

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

Received on Saturday, 24 January 2026 00:28:31 UTC