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
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.
The text was updated successfully, but these errors were encountered:
Test to reproduce bug:
Looks like this works with document, but fails in fragment.
The text was updated successfully, but these errors were encountered: