@btford is right here.  In this case, the `className` is of type `SVGAnimatedString`.  This has a property `baseVal` that you can read if you like but writing to it has no affect on the actual CSS class attribute of the element.  `getAttribute` and `setAttribute` seem like the only reasonable solution.