You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch-mdn tries to fetch JSON files from MDN using the URL template https://developer.mozilla.org/en-US/docs/Web/API/${name}$json (where ${name} is the name of an IDL interface), but this no longer works. For example, https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream$json returns HTTP 404. There doesn't seem to be an official machine-friendly API anymore... 😕 The best we can do would be processing the Markdown source files from https://github.com/mdn/content, such as https://github.com/mdn/content/blob/main/files/en-us/web/api/readablestream/index.md.
Safari DevTools seemingly imports comments for CSS properties from somewhere, not sure it's MDN or not. I hope there's a better way since both of the previous ways were all hacky.
Activity
MattiasBuelens commentedon Jan 3, 2022
FYI: It looks like the
fetch-commentandfetch-mdnscripts are now both broken.fetch-commentrequiresinputfiles/idlSources.json, which was removed in Remove redundant files and types #1044.fetch-mdnrequiresinputfiles/browser.webidl.preprocessed.json, which was removed in Merge types_web back into TypeScript DOM lib generator #1034.fetch-mdntries to fetch JSON files from MDN using the URL templatehttps://developer.mozilla.org/en-US/docs/Web/API/${name}$json(where${name}is the name of an IDL interface), but this no longer works. For example,https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream$jsonreturns HTTP 404. There doesn't seem to be an official machine-friendly API anymore... 😕 The best we can do would be processing the Markdown source files from https://github.com/mdn/content, such as https://github.com/mdn/content/blob/main/files/en-us/web/api/readablestream/index.md.saschanaz commentedon Jan 3, 2022
Safari DevTools seemingly imports comments for CSS properties from somewhere, not sure it's MDN or not. I hope there's a better way since both of the previous ways were all hacky.
Remove comment fetcher
Remove comment fetcher
Remove comment fetcher
Remove comment fetcher (#1349)
Bashamega commentedon Apr 25, 2025
Hello Kagami Sascha Rosylight (@saschanaz)
I think this should be closed, because I have updated the comments in #1940
saschanaz commentedon Apr 25, 2025
Good point, closing.