-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
custom protocol parse result is different from chrome and firefox #44476
Comments
|
I haven't looked closely, but there's also something in the spec about how browser implementations are supposed to do more steps than non-browser implementations, so the difference in behavior might be due to that. |
I haven't looked at the steps in the parser to determine if this is or isn't a bug, but there is a good chance this is an expected divergence between web browsers and non-web-browsers. |
@nodejs/url |
Deno and Safari 15.6.1 work like the Node.js and the reference implementation of the WHATWG URL.
I think Chrome and Firefox are deviating from the spec for some reason. |
I think it is Chrome, Edge, and Firefox are deviating from the spec because they both fail the wpt test when parsing custom protocols like
|
Version
v18.7.0 v16.16.0
Platform
alpinelinux and archlinux
Subsystem
No response
What steps will reproduce the bug?
Node
Google Chrome 92
Mozilla Firefox 90
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
Additional information
Related background story issue
sindresorhus/normalize-url#140
sindresorhus/normalize-url#147
Related background story
To answer Can I use version 7 in the browser?
I fork sindresorhus/normalize-url to loynoir/normalize-url
In that fork, I added real browser test using karma.
And found browser falling case, but it's ok in node
Seems root cause is
Node
Google Chrome 92
Mozilla Firefox 90
The text was updated successfully, but these errors were encountered: