W3C home > Mailing lists > Public > www-svg@w3.org > May 2012

Re: classList should perhaps move from HTMLElement to Element

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 2 May 2012 22:59:09 +0000 (UTC)
To: Dirk Schulze <dschulze@adobe.com>
cc: www-svg <www-svg@w3.org>
Message-ID: <Pine.LNX.4.64.1205022258280.19700@ps20323.dreamhostps.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:51 GMT