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

Non-special schema URL behaviors differently... #526

Closed
shrinktofit opened this issue Jun 11, 2020 · 3 comments
Closed

Non-special schema URL behaviors differently... #526

shrinktofit opened this issue Jun 11, 2020 · 3 comments
Labels
topic: file Aren't file: URLs the best? topic: parser

Comments

@shrinktofit
Copy link

Given new URL("db://x/y/z").

Chrome, Firefox, Edge:

pathname: "//x/y/z",

NodeJS:

hostname: 'x',
pathname: '/y/z',

Given new URL("file:x/y/z").

Chrome, Edge:

host: "x"
pathname: "/y/z"

Firefox, NodeJS:

pathname: "/x/y/z"
@achristensen07
Copy link
Collaborator

With the first example, Safari and NodeJS follow the spec and Chrome ant Firefox have told me of their intent to change to follow the spec.

I’d have to look more closely at the second example with a laptop.

@annevk
Copy link
Member

annevk commented Jun 11, 2020

(Aside: file URLs are special URLs. This might be #405.)

@domenic
Copy link
Member

domenic commented Sep 30, 2020

Given that the first is working as intended, and #405 got fixed, I think this is probably closeable. In particular, for the second case, the spec matches Firefox and Safari (2/3 engines).

/cc @alwinb

@annevk annevk closed this as completed Oct 20, 2021
@annevk annevk added the topic: file Aren't file: URLs the best? label Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: file Aren't file: URLs the best? topic: parser
Development

No branches or pull requests

4 participants