add support for the SVG case of removeClass.