Skip to content

Commit

Permalink
Spec update: Use Nontransitional_Processing for IDNA ToASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Feb 21, 2017
1 parent 023ebe8 commit 07d4514
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
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 = "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`;
Expand Down
2 changes: 1 addition & 1 deletion src/url-state-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07d4514

Please sign in to comment.