Re: classList should perhaps move from HTMLElement to Element

On Wed, 2 May 2012, Dirk Schulze wrote:
>
> It is an object to support SVG animations on className. It is of type 
> SVGAnimatedString. To support classList the same way we would need an 
> object SVGAnimatedStringList, what we don't have at the moment. I don't 
> think that their will be plans to support it in the future.
> 
> Nevertheless, we had a lot of bug reports where web developers want to 
> use functionality form HTML in SVG as well. Therefore I would like SVG 
> and HTML to be consistent here. I don't think that moving classList to 
> Element would break backwards compatibility. So I think it should be in 
> Element since it indeed can be a win for all markup languages.

I think having className and classList represent different things would be 
even more confusing than not having classList at all.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 2 May 2012 22:59:33 UTC