Update getClass to support SVG edge case

    var className = element.className || '';
    return className.baseVal || className;