Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugs in URL implementation #9383

Closed
piscisaureus opened this issue Feb 3, 2021 · 1 comment · Fixed by #9276 or #9639
Closed

Bugs in URL implementation #9383

piscisaureus opened this issue Feb 3, 2021 · 1 comment · Fixed by #9276 or #9639
Assignees
Labels
bug Something isn't working correctly ext/web related to the ext/web crate

Comments

@piscisaureus
Copy link
Member

// Setting `.port` should update only the receiver.
const u1 = new URL("http:https://google.com/");
const u2 = new URL(u1);
u2.port = 123;
assertStrictEquals(u1.port, "");

// URLSearchParams identity should not be lost when URL is updated.
const u = new URL("http:https://foo.com/");
const sp1 = u.searchParams;
u.href = "http:https://bar.com/?baz=42";
const sp2 = u.searchParams;
assertStrictEquals(sp1, sp2);
@piscisaureus piscisaureus self-assigned this Feb 3, 2021
@nayeemrmn
Copy link
Collaborator

Fixed by #9276.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly ext/web related to the ext/web crate
Projects
None yet
3 participants