Skip to content

Commit

Permalink
Fix per review
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jan 31, 2017
1 parent f845f2f commit 9dca13d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/get-latest-platform-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const request = require("request");
// 1. Go to https://github.com/w3c/web-platform-tests/tree/master/url
// 2. Press "y" on your keyboard to get a permalink
// 3. Copy the commit hash
const commitHash = "825b63235d43b95a12b4a174e3f8243bd990e741";
const commitHash = "4ea8eae2fd807ffd22e84f3c2f2ca12f798f8206";

const sourceURL = `https://raw.githubusercontent.com/w3c/web-platform-tests/${commitHash}/url/urltestdata.json`;
const setterSourceURL = `https://raw.githubusercontent.com/w3c/web-platform-tests/${commitHash}/url/setters_tests.json`;
Expand Down
5 changes: 3 additions & 2 deletions src/url-state-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,10 @@ URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(
if (isSpecial(this.url) && (c === p("/") || c === p("\\"))) {
if (c === p("\\")) {
this.parseError = true;
} else if (c === p("/")) {
this.state = "authority";
}
this.state = "special authority ignore slashes";
} else if (c === p("/")) {
this.state = "authority";
} else {
this.url.username = this.base.username;
this.url.password = this.base.password;
Expand Down

0 comments on commit 9dca13d

Please sign in to comment.