   findNodeAndOffsetFromLocation: (location) ->
     offset = 0
 
-    for currentNode in @getNodesForIndex(location.index)
+    for currentNode in @getSignificantNodesForIndex(location.index)
       length = nodeLength(currentNode)
 
       if location.offset <= offset + length

    figure = findClosestElementFromNode(node, matchingSelector: "figure")
    figure if elementContainsNode(@element, figure)

  getNodesForIndex: (index) ->
    nodes = []
    walker = walkTree(@element, usingFilter: emptyTextNodeFilter)
    recordingNodes = false

    while walker.nextNode()

      container = figure.parentNode
      offset = findChildIndexOfNode(figure)

    walker = walkTree(@element, usingFilter: rejectFigureContents)

    while walker.nextNode()
      node = walker.currentNode
