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
dataset is also available on SVGElement #22352
Comments
Yeah, an element created with a But if you instead do: const p = document.createElement("p")
e instanceof HTMLElement
// returns true And the https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset page documents the
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset doesn’t say it’s only available on
https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:dom-dataset documents is as being a member of the https://developer.mozilla.org/en-US/docs/Web/API/SVGElement documents that the I guess what’s misleading here is that if you follow the |
Yes, this bit is surely just wrong. It's a redirect:
Given that we don't document mixins, we have to document the features they contain separately on the interfaces they inherit from. So the best thing to do would be to write a page at https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/dataset, and change that link to point to it. |
Cross linking #6519 |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
The documentation states that the dataset is only available on HTMLElement which seems to be wrong. According to the spec, it is defined on Element
What did you expect to see?
Element.dataset in the heading instead of HTMLElement.dataset
Do you have any supporting links, references, or citations?
https://html.spec.whatwg.org/multipage/dom.html#dom-dataset-dev
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: