yuntaozhu / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.dom.classes don't support SVG #471

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's about setting `className` property. Methods in `goog.dom.classes` should 
check on the namespace of the element, or type of `className` property, and in 
case of SVG (SVGAnimatedString), set it's `baseVal` property.

Original issue reported on code.google.com by dusan.ma...@gmail.com on 16 May 2012 at 9:21

GoogleCodeExporter commented 8 years ago
goog.dom.classes is not intended to handle the special SVG className interface

http://www.w3.org/TR/SVG/types.html#__svg__SVGStylable__className

We can simply put a note about this at the top. 

Original comment by nn...@google.com on 22 May 2012 at 10:40

GoogleCodeExporter commented 8 years ago
Or you can simply support it ;)

Original comment by dusan.ma...@gmail.com on 26 May 2012 at 9:53

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2081.

Original comment by Nicholas.J.Santos on 6 Aug 2012 at 8:48

GoogleCodeExporter commented 8 years ago
I'm wondering whether goog.dom.classlist supports SVG elements. Have you tried 
that?

Original comment by pall...@google.com on 24 Apr 2013 at 5:27