 
 
 class ScribeStyleFormat extends ScribeSpanFormat
-  @getStyleObject: (container) ->
-    styleString = container.getAttribute('style') or ''
-    return _.reduce(styleString.split(';'), (styles, str) ->
-      [name, value] = str.split(':')
-      if name and value
-        name = name.slice(1) if name.slice(0, 1) == " "
-        value = value.slice(1) if value.slice(0, 1) == " "
-        styles[name.toLowerCase()] = value
-      return styles
-    , {})
-
   constructor: (@root, @keyName, @cssName, @defaultStyle, @styles) ->
     super
 

    return false

  clean: (node) ->
    ScribeDOM.removeAttributes(node, 'style')

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

  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")

