   constructor: (@root, @keyName) ->
     super(@root, @keyName, 'SPAN')
 
+  clean: (node) ->
+    # cannot super because LeafFormat removes all attributes
+    node = ScribeDOM.switchTag(node, @tagName) unless node.tagName == @tagName
+    return node
+
   approximate: (value) ->
     throw new Error("Descendants should implement")
 


  clean: (node) ->
    ScribeDOM.removeAttributes(node, ['href', 'title'])

  createContainer: (value) ->
    link = super(value)


  clean: (node) ->
    ScribeDOM.removeAttributes(node)
    return node

  createContainer: ->
    throw new Error("Descendants should implement")
