only set class attribute if browser supports SVG