This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
the (incomplete) definition of ElementCSSInlineStyle (see 7.1) does not specify that an object that implements the Element interface must also implement ElementCSSInlineStyle; need to add normative text specifying: Element implements ElementCSSInlineStyle;
Neh, it should become "partial Element" instead.
(In reply to comment #1) > Neh, it should become "partial Element" instead. ok, that works for me
Except not all elements implement ElementCSSInlineStyle. In particular, not all SVG elements have a .style per current SVG spec.
(In reply to comment #3) > Except not all elements implement ElementCSSInlineStyle. In particular, not > all SVG elements have a .style per current SVG spec. good point; perhaps it is best specified as HTMLElement implements ElementCSSInlineStyle or as partial HTMLElement {} though personally I do not like the use of partial, since it does not permit one to identify the collection of new members being added, and does not support instanceof (or equivalent) operator
If we want .style to appear on the mixin prototype object, we use "implements". If we want it to appear on HTMLElement.prototype, we use "partial". In neither case would "document.createElement("div") instanceof ElementCSSInlineStyle" return true, if I read webidl correctly. I would personally be reasonably OK with trying to push .style up to Element if the SVG folks are OK with it...
My thinking is that HTML and SVG should say HTMLElement implements ElementCSSInlineStyle and SVGElement implements ElementCSSInlineStyle. If we make it work on Element, should we make style="" work on any element as well?
https://dvcs.w3.org/hg/csswg/rev/ca20cc414744