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
Define dataset as a mixin for HTMLElement and SVGElement #280
Comments
Maybe HTML would be a better place to provide this abstraction, since everything has to depend on HTML anyway? |
If you think that's the appropriate place then that's ok with us. Where it ends up isn't as important as having only a single definition. |
I think I would prefer that. We put @domenic agreed? |
Yeah I guess the reasoning in your last comment makes sense. So in terms of HTML changes, I'm thinking, create a new ElementDataset mixin in the section #embedding-custom-non-visible-data-with-the-data-*-attributes, move |
Yeah, and we need to verify all attribute manipulation is generic enough. And maybe the data-* conformance should be made reusable or directly defined for SVG too. |
See also https://bugzilla.mozilla.org/show_bug.cgi?id=921834. Apparently WebKit/Blink expose it directly on Element. Gecko plans to add it to SVGElement. Edge only has it on HTMLElement. |
If you read a bit further down this is not true. Confirmation, at least in Blink (not near my WebKit computer): http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4371 |
Oops, my bad. Okay, maybe given that @cdumez can patch WebKit. |
@annevk: so moving dataset from Element to HTMLElement / SVGElement ? |
@cdumez yes. |
@annevk Not a problem then: http://trac.webkit.org/changeset/204377 |
So that just leaves Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10790130/ |
Edge now supports this on SVGElement, along with a number of other things like tabIndex, focus(), blur(). They all seem like something that could be in a mixin. |
I'm moving this to whatwg/html#3471 as this is really an issue with the HTML Standard. |
The
SVGElement
andHTMLElement
interfaces both define adataset
IDL attribute.The SVGWG are wondering about the possibility of moving the definition into DOM as a mixin interface that can then be applied to both
HTMLElement
andSVGElement
.Issue in SVGWG tracker: w3c/svgwg#60
The text was updated successfully, but these errors were encountered: