code: function className(node, value){
      var klass = node.className || '',
          svg   = klass && klass.baseVal !== undefined
  
      if (value === undefined) return svg ? klass.baseVal : klass
      svg ? (klass.baseVal = value) : (node.className = value)
    }
docs: access className property while respecting SVGAnimatedString