class Capybara::Queries::AncestorQuery
def resolve_for(node, exact = nil)
- Api: - private
def resolve_for(node, exact = nil) @child_node = node node.synchronize do match_results = super(node.session.current_scope, exact) node.all(:xpath, XPath.ancestor) { |el| match_results.include?(el) } end end