Skip to content

Commit bf029a6

Browse files
committed
Spec update: stop decoding all %2es in paths
This follows whatwg/url#156.
1 parent 9096654 commit bf029a6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

scripts/get-latest-platform-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const request = require("request");
1515
// 1. Go to https://github.com/w3c/web-platform-tests/tree/master/url
1616
// 2. Press "y" on your keyboard to get a permalink
1717
// 3. Copy the commit hash
18-
const commitHash = "5be497b5f5a7036e26dc14739aa8d42f643cf94f";
18+
const commitHash = "d179f7eadbe83a6fa9bf7ee85c2de440b8c6dc7d";
1919

2020
const sourceURL = `https://raw.githubusercontent.com/w3c/web-platform-tests/${commitHash}/url/urltestdata.json`;
2121
const setterSourceURL = `https://raw.githubusercontent.com/w3c/web-platform-tests/${commitHash}/url/setters_tests.json`;

src/url-state-machine.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,7 @@ URLStateMachine.prototype["parse path"] = function parsePath(c) {
975975
this.parseError = true;
976976
}
977977

978-
if (c === p("%") &&
979-
this.input[this.pointer + 1] === p("2") &&
980-
(this.input[this.pointer + 2] === p("e") || this.input[this.pointer + 2] === p("E"))) {
981-
this.buffer += ".";
982-
this.pointer += 2;
983-
} else {
984-
this.buffer += encodeChar(c, isDefaultEncode);
985-
}
978+
this.buffer += encodeChar(c, isDefaultEncode);
986979
}
987980

988981
return true;

0 commit comments

Comments
 (0)