Skip to content

Editorial: describe the decodeURI preserve set accurately - #4053

Open
bakkot wants to merge 1 commit into
tc39:mainfrom
bakkot:fix-decodeuri-note
Open

bakkot wants to merge 1 commit into
tc39:mainfrom
bakkot:fix-decodeuri-note

Conversation

@bakkot

@bakkot bakkot commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Cherry-pick of the commit from #4029 by @JinDX.

The current description is incorrect: encodeURI cannot introduce the escape sequence %41, but decodeURI('%41') does decode it (to "A").

This has actually been wrong since ES3, when these algorithms and this prose was introduced.

@github-actions

Copy link
Copy Markdown

The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/4053 and as multiple pages at https://tc39.es/ecma262/pr/4053/multipage .

@linusg linusg added editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land. labels Oct 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants