       console.log "Trying fallback..."
       # We have a an 'evaluator' for the really simple expressions that
       # should work for the simple expressions we generate.
-      $.xpath xp, root
+      Util.nodeFromXPath(xp, root)
 
   if not $.isXMLDoc document.documentElement
     evaluateXPath xpath

      else
        origParent = $(node).parent()

      xpath = origParent.xpath(root)[0]
      textNodes = origParent.textNodes()

      # Calculate real offset as the combined length of all the
      # preceding textNode siblings. We include the length of the

      # the combined length of the textNodes to that point exceeds or
      # matches the value of the offset.
      length = 0
      for tn in Util.getTextNodes($(node))
        if (length + tn.nodeValue.length >= this[p + 'Offset'])
          range[p + 'Container'] = tn
          range[p + 'Offset'] = this[p + 'Offset'] - length
