Skip to content

Commit

Permalink
Spec update: remove gopher special-casing
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 21, 2019
1 parent 32ec165 commit 57ac6b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe

## Specification conformance

whatwg-url is currently up to date with the URL spec up to commit [6ef17eb](https://github.com/whatwg/url/commit/6ef17ebe1220a7e7c0cfff0785017502ee18808b).
whatwg-url is currently up to date with the URL spec up to commit [7ae1c69](https://github.com/whatwg/url/commit/7ae1c691c96f0d82fafa24c33aa1e8df9ffbf2bc).

For `file:` URLs, whose [origin is left unspecified](https://url.spec.whatwg.org/#concept-url-origin), whatwg-url chooses to use a new opaque origin (which serializes to `"null"`).

Expand Down
2 changes: 1 addition & 1 deletion scripts/get-latest-platform-tests.js
Expand Up @@ -18,7 +18,7 @@ process.on("unhandledRejection", err => {
// 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 = "37d83def16bacfa66abac065f8f5adc8f7e7a4fc";
const commitHash = "fd4814ce7fcc4d6c23c73aac62daa8299feb0510";

const urlPrefix = `https://raw.githubusercontent.com/web-platform-tests/wpt/${commitHash}/url/`;
const targetDir = path.resolve(__dirname, "..", "test", "web-platform-tests");
Expand Down
2 changes: 0 additions & 2 deletions src/url-state-machine.js
Expand Up @@ -12,7 +12,6 @@ function p(char) {
const specialSchemes = {
ftp: 21,
file: null,
gopher: 70,
http: 80,
https: 443,
ws: 80,
Expand Down Expand Up @@ -1237,7 +1236,6 @@ module.exports.serializeURLOrigin = function (url) {
return "null";
}
case "ftp":
case "gopher":
case "http":
case "https":
case "ws":
Expand Down

0 comments on commit 57ac6b2

Please sign in to comment.