Skip to content
New issue

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

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

Already on GitHub? # to your account

Unclear behavior of path scheme for special URL #275

Closed
watilde opened this issue Mar 18, 2017 · 4 comments
Closed

Unclear behavior of path scheme for special URL #275

watilde opened this issue Mar 18, 2017 · 4 comments

Comments

@watilde
Copy link

watilde commented Mar 18, 2017

From these lines: w3c/web-platform-tests/url/setters_tests.json. On Chrome, the pathname displays //example.com, but whatwg-url displays empty, and node displays /.

var url = new URL('ssh://example.com')
console.log(url.pathname)

What should we expect as a spec? I think it should be / as like the other scheme.

@TimothyGu
Copy link
Member

AFAICT Node.js' implementation is currently outdated. Specifically, I don't think #213 has been implemented yet.

@domenic
Copy link
Member

domenic commented Mar 18, 2017

You should expect an empty string per the spec as discussed in #213.

@annevk
Copy link
Member

annevk commented Mar 19, 2017

Yeah, closing this.

@annevk annevk closed this as completed Mar 19, 2017
@watilde
Copy link
Author

watilde commented Mar 21, 2017

Thanks for pointing that!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

4 participants