Skip to content

Percent encoding examples seem to be wrong #895

@ChALkeR

Description

@ChALkeR

What is the issue with the URL Standard?

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

Percent-encode after encoding with ISO-2022-JP, input, and the 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 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

But it's present in the expected output in the example

It was that way since the introduction in e5334dd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions