diff --git a/specs.json b/specs.json index b1d2ca1c..81be7617 100644 --- a/specs.json +++ b/specs.json @@ -879,6 +879,7 @@ "url": "https://www.w3.org/Graphics/GIF/spec-gif89a.txt", "shortname": "GIF", "shortTitle": "GIF", + "title": "Graphics Interchange Format", "organization": "CompuServe Incorporated", "groups": [ { diff --git a/src/fetch-info.js b/src/fetch-info.js index 91ee59ce..eaf6f630 100644 --- a/src/fetch-info.js +++ b/src/fetch-info.js @@ -236,7 +236,9 @@ async function fetchInfoFromSpecref(specs, options) { // these specs to avoid a catch-22 where the info in browser-specs gets stuck // to the that in Specref. const filteredSpecs = specs.filter(spec => - !spec.url.match(/\/\/(wicg|w3c)\.github\.io\//)); + !spec.url.match(/\/\/(wicg|w3c)\.github\.io\//) && + !spec.url.match(/\/\/www\.w3\.org\//) && + !spec.url.match(/\/\/drafts\.csswg\.org\//)); const chunks = chunkArray(filteredSpecs, 50); const chunksRes = await Promise.all(chunks.map(async chunk => { @@ -505,6 +507,15 @@ async function fetchInfoFromSpecs(specs, options) { }; } } + else if (spec.url.endsWith(".txt")) { + // Spec from another time (typically the GIF spec), published as plain + // text. Nothing we can usefully extract from the spec. Let's proceed + // and hope `specs.json` contains the appropriate info for the spec + // (no official status for the spec either, using "Editor's Draft") + return { + nightly: { url, status: "Editor's Draft" } + } + } const titleAndStatus = await page.evaluate(_ => { // Extract first heading when set