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

File URLs test #60

Merged
merged 1 commit into from Dec 19, 2016
Merged

File URLs test #60

merged 1 commit into from Dec 19, 2016

Conversation

domenic
Copy link
Member

@domenic domenic commented Dec 18, 2016

Windows file URLs seem to have regressed between whatwg-url 3.1.0 and 4.1.0, at least according to jsdom test results. Very strangely no such tests are included upstream.

@domenic
Copy link
Member Author

domenic commented Dec 18, 2016

This passes if we replace shortenPath with url.path.pop() :O

Edit: diagnosed this; updated commit contains a fix and explains the situation.

domenic added a commit to whatwg/url that referenced this pull request Dec 19, 2016
Sometimes "single" is used to mean "any" which causes a different, incorrect interpretation of this algorithm (see jsdom/whatwg-url#60). Clarify by using a more precise algorithm.
This regressed in 8849b62 due to an incorrect interpretation of "shorten the path"; see whatwg/url#174.
@domenic domenic merged commit 1a482fd into master Dec 19, 2016
@domenic domenic deleted the fix-file-urls branch December 19, 2016 00:08
annevk pushed a commit to whatwg/url that referenced this pull request Dec 19, 2016
Sometimes "single" is used to mean "any" which causes a different, incorrect interpretation of this algorithm (see jsdom/whatwg-url#60). Clarify by using a more precise algorithm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant