diff --git a/src/fetch-info.js b/src/fetch-info.js index b9346ee0..e0a4d281 100644 --- a/src/fetch-info.js +++ b/src/fetch-info.js @@ -241,18 +241,12 @@ async function fetchInfoFromSpecref(specs, options) { async function fetchInfoFromSpecs(specs, options) { const info = await Promise.all(specs.map(async spec => { const url = spec.nightly?.url || spec.url; - // Force use of more stable w3c.github.io address for CSS drafts - let fetchUrl = url; - if (url.match(/\/drafts\.csswg\.org/)) { - const draft = computeShortname(url); - fetchUrl = `https://w3c.github.io/csswg-drafts/${draft.shortname}/`; - } let dom = null; try { - dom = await JSDOMFromURL(fetchUrl); + dom = await JSDOMFromURL(url); } catch (err) { - throw new Error(`Could not retrieve ${fetchUrl} with JSDOM: ${err.message}`); + throw new Error(`Could not retrieve ${url} with JSDOM: ${err.message}`); } if (spec.url.startsWith("https://tc39.es/")) {