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. |
| </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.
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.
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
| </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.
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