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
{{ message }}
Repository navigation
:last css selector not working in DocumentFragment #454
def test_last_fragment
text = '<p>Lorem ipsum</p><p>Second paragraph</p><div>Not paragraph</div>'
fragment = Nokogiri::HTML.fragment text
assert_equal(1, fragment.search('p:last').size)
assert_equal(1, fragment.css('p:last').size)
end
Looks like this works with document, but fails in fragment.
Activity
flavorjones commentedon May 10, 2011
This is a dup of either #213 or #370.
Tests demonstrating the issue from #572
flavorjones commentedon Jan 2, 2015
Folding this into #572, the underlying issue is the same.