The tree node doesn't accept css classes, please try to define the 'formatter' function to format your node's text value, or set the css class on the 'text' value.
t.tree('append', {
parent: node.target,
data: [{
id: 1233,
text: '<span class="mynode">name1233</span>'
}]
})