From 90a5d54fec2b37e0a0288dabf6db0b161725bffd Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 21 Feb 2017 16:00:15 -0500 Subject: [PATCH] Spec update: remove javascript URL special case in the hash setter Follows https://github.com/whatwg/url/pull/254. --- lib/URL-impl.js | 4 ---- scripts/get-latest-platform-tests.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/URL-impl.js b/lib/URL-impl.js index bceb9e6..f344b20 100644 --- a/lib/URL-impl.js +++ b/lib/URL-impl.js @@ -184,10 +184,6 @@ exports.implementation = class URLImpl { } set hash(v) { - if (this._url.scheme === "javascript") { - return; - } - if (v === "") { this._url.fragment = null; return; diff --git a/scripts/get-latest-platform-tests.js b/scripts/get-latest-platform-tests.js index c1120a7..adb0655 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 = "9e33ff697b9bb0b2b0c160ae34c145f9a78ae04d"; +const commitHash = "9f6f1d19334c65479b360873657d82c509c9ea63"; 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`;