 
   measureToColumn: (lineElement, tokenizedLine, column) ->
     left = oldLeft = index = 0
-    iterator = document.createNodeIterator(lineElement, NodeFilter.SHOW_TEXT, TEXT_NODE_FILTER)
+    iterator = document.createNodeIterator(lineElement, NodeFilter.SHOW_TEXT, TextNodeFileter)
 
     returnLeft = null
 

    obj[char]

  setCharacterWidthCache: (scopes, char, val) ->
    scopes ?= NO_SCOPE
    obj = Editor.characterWidthCache
    for scope in scopes
      obj[scope] ?= {}

          left = oldLeft + cachedVal
        else
          # i + 1 to measure to the end of the current character
          MeasureRange.setEnd(textNode, i + 1)
          MeasureRange.collapse()
          left = MeasureRange.getClientRects()[0].left - Math.floor(@scrollView.offset().left) + Math.floor(@scrollLeft())

          @setCharacterWidthCache(scopes, char, left - oldLeft) if scopes?

