Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore using MDN to improve DOM documentation #44204

Closed
mjbvz opened this issue May 21, 2021 · 4 comments
Closed

Explore using MDN to improve DOM documentation #44204

mjbvz opened this issue May 21, 2021 · 4 comments
Labels
Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented May 21, 2021

Suggestion

🔍 Search Terms

  • mdn
  • jsdoc
  • quickinfo / hover
  • IntelliSense
  • lib.dom.d.ts

⭐ Suggestion

When trying to figure out a DOM api, I often find that our built-in documentation isn't enough and that I instead have to go to MDN. It would be great if we could use MDN data to improve our documentation since MDN seems more up to date and more comprehensive than what we have in lib.dom.d.ts.

On the VS Code team, we have previously used MDN for our css and html support:

Some ideas to explore:

  • Pull in more documentation for types and parameters from MDN (not sure how much the lib-dom generator already does this, but many DOM types currently are missing documentation)

  • Add a MDN link to the bottom of documentation

@maccman
Copy link

maccman commented Oct 23, 2022

Love this idea!

@its-all-waves
Copy link

its-all-waves commented Mar 22, 2023

Yes this would be great! Also, letting us see that in an HTML doc.

@Nima-MM
Copy link

Nima-MM commented Aug 1, 2023

So is there any solution? This is for us beginner, very very helpful to get familiar with the language we are working with.
MDN or any kind of explanation of the keyword.

@RyanCavanaugh
Copy link
Member

We looked into this a while back and determined that the licensing of the content makes it quite difficult to move it into the .d.ts files. It's under the CC-BY-SA license but we don't have any ergonomic way to comply with the attribution requirements of that license without hugely bloating the size of the relevant files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants