Handle className correctly for SVG nodes.