   # Return the character range mappings for a given path in the DOM
   getRangeForPath: (path) ->
     result = @mappings[path]
+    unless result? then throw new Error "Found no range for path '" + path + "'!"
     if @restricted
       result = $.extend {}, result;
       result.pathInfo = $.extend {}, result.pathInfo


    # create our range, and select it
    range = @rootWin.document.createRange()
    range.setStartBefore node
    range.setEndAfter node
    sel.addRange range
    if scroll
      sn = node

class window.DomTextMapper

  USE_TH_TBODY_WORKAROUND = true

  constructor: ->
    @setRealRoot()
    @restrictToSerializable false
