vanilla js, :
var paper = Raphael(10, 50, 320, 200);
var t = paper.text(50, 50, "Raphaël\nkicks\nbutt!");
(t.node.className ? t.node.className.baseVal = 'mytext' : t.node.setAttribute('class', 'mytext'));
, , , Raphael , , , !important, .
, , svg , "factory", svg .
( Chrome 13.0.772): jsfiddle