diff --git a/README.md b/README.md index ae72562..0380316 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe ## Current Status -whatwg-url is currently up to date with the URL spec up to commit [9b2eb1](https://github.com/whatwg/url/commit/9b2eb10eb8436adaf6620b1864b25442152f205b). +whatwg-url is currently up to date with the URL spec up to commit [f4d84a](https://github.com/whatwg/url/commit/f4d84a52e67b154b2d11e04889fe0a35a029c833). ## API diff --git a/scripts/get-latest-platform-tests.js b/scripts/get-latest-platform-tests.js index 6dc56b2..c1120a7 100644 --- a/scripts/get-latest-platform-tests.js +++ b/scripts/get-latest-platform-tests.js @@ -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 = "503f5b5f78ec4e87d144f78609f363f0ed0ea8db"; +const commitHash = "9e33ff697b9bb0b2b0c160ae34c145f9a78ae04d"; 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`; diff --git a/src/url-state-machine.js b/src/url-state-machine.js index 7d76b72..629cf7f 100644 --- a/src/url-state-machine.js +++ b/src/url-state-machine.js @@ -400,7 +400,7 @@ function parseHost(input, isSpecialArg) { } const domain = utf8PercentDecode(input); - const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.TRANSITIONAL, false); + const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false); if (asciiDomain === null) { return failure; }