Skip to content

URLSearchParams behavior inconsistent with spec, browser, node.js #1777

Closed
@irvinebroque

Description

The following code:

 new URLSearchParams(new URL('https://example.com/?q1=foo&q2=foo+bar&q3=foo bar&q4=foo/bar').searchParams).toString();

...returns the following on Workers:

q1=foo&q2=foo+bar&q3=foo+bar&q4=foo/bar

...but in Node.js, browsers, etc returns:

q1=foo&q2=foo+bar&q3=foo+bar&q4=foo%2Fbar

/ instead of %2

We need to understand why this is the case and if a regression from #1273

Activity

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

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions