     xpath
 
   # This method is called recursively, to collect all the paths in a given sub-tree of the DOM.
-  collectPathsForNode: (node) ->
+  collectPathsForNode: (node, invisible = false) ->
     # Step one: get rendered node content, and store path info, if there is valuable content
     cont = @getNodeContent node, false
     if cont.length

  # Select the given path (for visual identification), and optionally scroll to it
  selectPath: (path, scroll = false) ->
    info = @path[path]
    node = info.node ? @lookUpNode info.path
    @selectNode node, scroll
 
  performUpdateOnNode: (node, escalating = false) ->

    # To work around this, when told to select specific nodes, we have to
    # do various other things. See bellow.

    if node.nodeType is Node.ELEMENT_NODE and node.hasChildNodes() and
        ((USE_THEAD_TBODY_WORKAROUND and node.tagName.toLowerCase() in ["thead", "tbody"]) or
        (USE_OL_WORKAROUND and node.tagName.toLowerCase() is "ol"))
      # This is a thead or a tbody, and selection those is problematic,
      # because if the WebKit bug.
      # (Sometimes it selects nothing, sometimes it selects the whole table.)
