[whatwg] classList should perhaps move from HTMLElement to Element

Cameron McCormack cam at mcc.id.au
Fri Nov 19 11:25:09 PST 2010


Boris Zbarsky:
> Given that SVG also has classes, it would make some sense to move
> classList from HTMLElement to Element.  That way SVG, and any other
> languages that define classes (XUL comes to mind, actually) can
> benefit from it as well.
> 
> Note that Gecko's current classList implementation lives on Element.

Would classList provide access to the SVG element’s base or animated
value of class=""?  Base probably makes more sense.

-- 
Cameron McCormack ≝ http://mcc.id.au/



More information about the whatwg mailing list