-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Error result when url using custom protocol in browser #147
Comments
Related: Can I use version 7 in the browser? |
Node > new URL("sindre://www.sorhus.com").protocol
'sindre:'
> new URL("sindre://www.sorhus.com").host
'www.sorhus.com'
> new URL("sindre://www.sorhus.com").pathname
'' Google Chrome 92 > new URL("sindre://www.sorhus.com").protocol
"sindre:"
> new URL("sindre://www.sorhus.com").host
""
> new URL("sindre://www.sorhus.com").pathname
"//www.sorhus.com" Mozilla Firefox 90 > new URL("sindre://www.sorhus.com").protocol
"sindre:"
> new URL("sindre://www.sorhus.com").host
""
> new URL("sindre://www.sorhus.com").pathname
"//www.sorhus.com" |
loynoir
added a commit
to loynoir/normalize-url
that referenced
this issue
Aug 9, 2021
1. [test] Move `ava` to `mocha+chai` to test in real browser. (sindresorhus#105) (sindresorhus#140) (sindresorhus#142) 2. [test] seprate non special-protocol-schemes(sindresorhus#147) 3. [doc] Update readme
loynoir
changed the title
AssertionError: expected 'sindre:/www.sorhus.com' to deeply equal 'sindre://sorhus.com'
Error result when url using custom protocol in browser
Aug 11, 2021
You should report this bug to https://github.com/nodejs/node if it's still an issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test in browser
normalize-url/test.js
Line 40 in 3fb24bb
Expected
Actual
Related rejected fork
https://github.com/loynoir/normalize-url
The text was updated successfully, but these errors were encountered: