-
Notifications
You must be signed in to change notification settings - Fork 139
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
Repeated slashes should be ignored in file scheme #234
Conversation
b587151
to
ed2a94a
Compare
Are you planning on writing tests as well? There's some indentation issues with that patch, but it looks reasonable overall. Did you verify it with Node.js's implementation? (I think you mean to write "ignored" rather than "arranged".) |
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
@annevk Yeah I've verified on the branch I posted in the issue report, and it worked. I just created PR for WPT now, then I will fix the indentation issues and update the commit message with the PR link. |
url.bs
Outdated
</ol> | ||
<li> | ||
<p>Otherwise, set <var>state</var> | ||
to <a>authority state</a>, and decrease <var>pointer</var> by one.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running the jsdom/whatwg-url tests, this pointer decrease needs to happen even if the scheme is file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh that's right! I will update it.
Repeated slashes should be ignored in not only the http scheme, but also the file scheme as well. Tests: web-platform-tests/wpt#4762 Fixes: whatwg#232
ed2a94a
to
f320178
Compare
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
url.bs
Outdated
</li> | ||
<li> | ||
<p>Set <var>state</var> to <a>file state</a>, | ||
and decrease <var>pointer</var> by one.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can factor out the pointer decrease. Let me push a commit to show how.
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
Related links + The URL Standard change: whatwg/url#234 + The original bug report: whatwg/url#232
Tests: web-platform-tests/wpt#5195. Closes #234 by superseding it. Fixes #232.
Also copy file URL hosts correctly for path-absolute input. Tests: web-platform-tests/wpt#5195. Closes #234 by superseding it. Fixes #232.
Also copy file URL hosts correctly for path-absolute input. Tests: web-platform-tests/wpt#5195. Closes #234 by superseding it. Fixes #232.
Fixes #232.
Preview | Diff