You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because a CSS search on a Node only returns children of that node, a search on NodeSet will search across the collective children of the nodes in the set.
We should return matching toplevel nodes.
tenderlove suggested that CSS queries on a NodeSet should get translated as follows:
"div" => "self::div | .//div"
The text was updated successfully, but these errors were encountered:
def test_node_set_css_searches_match_self
html = Nokogiri::HTML("<html><body><div class='a'></div></body></html>")
set = html.xpath("/html/body/div")
assert_equal set.first, set.css(".a").first
end
Because a CSS search on a Node only returns children of that node, a search on NodeSet will search across the collective children of the nodes in the set.
We should return matching toplevel nodes.
tenderlove suggested that CSS queries on a NodeSet should get translated as follows:
The text was updated successfully, but these errors were encountered: