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

Repeated slashes should be ignored in file scheme #234

Closed
wants to merge 2 commits into from

Conversation

watilde
Copy link

@watilde watilde commented Feb 7, 2017

Fixes #232.


Preview | Diff

@annevk
Copy link
Member

annevk commented Feb 8, 2017

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".)

watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
Related links
+ The URL Standard change: whatwg/url#234
+ The original bug report: whatwg/url#232
@watilde watilde changed the title Repeated slashes should be arranged in file scheme Repeated slashes should be ignored in file scheme Feb 8, 2017
watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
Related links
+ The URL Standard change: whatwg/url#234
+ The original bug report: whatwg/url#232
@watilde
Copy link
Author

watilde commented Feb 8, 2017

@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>
Copy link
Member

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.

Copy link
Author

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
watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
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>
Copy link
Member

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.

watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
Related links
+ The URL Standard change: whatwg/url#234
+ The original bug report: whatwg/url#232
watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
Related links
+ The URL Standard change: whatwg/url#234
+ The original bug report: whatwg/url#232
watilde added a commit to watilde/web-platform-tests that referenced this pull request Feb 8, 2017
Related links
+ The URL Standard change: whatwg/url#234
+ The original bug report: whatwg/url#232
@annevk annevk added needs tests Moving the issue forward requires someone to write tests topic: parser labels Feb 16, 2017
annevk added a commit that referenced this pull request Mar 22, 2017
annevk added a commit that referenced this pull request Mar 28, 2017
Also copy file URL hosts correctly for path-absolute input.

Tests: web-platform-tests/wpt#5195.

Closes #234 by superseding it. Fixes #232.
@annevk annevk closed this in #278 Mar 29, 2017
annevk added a commit that referenced this pull request Mar 29, 2017
Also copy file URL hosts correctly for path-absolute input.

Tests: web-platform-tests/wpt#5195.

Closes #234 by superseding it. Fixes #232.
@watilde watilde deleted the feature/check-file-slashes branch March 29, 2017 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Moving the issue forward requires someone to write tests topic: parser
Development

Successfully merging this pull request may close these issues.

3 participants