use attr when adding classes
Merge pull request #5691 from guardian/fix-class-svg-doughnut

Fix classes on SVG doughnuts