             updateSVGContents(elt, contents)          
         
         for key of attrs when key of specialAttrs
-            specialAttrs[key](elt, attrs[key], attrs, contents) if _.isFunction attrs[key]
+          console.log "Creating specialAttrs #{key} #{attrs[key]}"
+          specialAttrs[key](elt, attrs[key], attrs, contents)# if _.isFunction attrs[key] or key == "class"
+          console.log elt.getAttribute(key)
         elt
 
     rxt.tags = _.object([tag, rxt.mktag(tag)] for tag in tags)

      "focusout", "hover", "keydown", "keypress", "keyup", "load", "mousedown",
      "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup",
      "ready", "resize", "scroll", "select", "submit", "toggle", "unload"]

    specialAttrs = rxt.specialAttrs = {
      init: (elt, fn) -> fn.call(elt)

    for ev in events
      do (ev) ->
        specialAttrs[ev] = (elt, fn) ->
          if elt instanceof SVGElement and ev in svg_events
            elt.addEventListener ev, fn
          else 
            elt[ev]((e) -> fn.call(elt, e))
