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
fragment = '<p id="content">hi</p>'
Nokogiri::HTML.fragment(fragment).search('#content').length # this returns zero
Nokogiri::HTML(fragment).search('#content').length # this returns 1
Searching for an element ('p') does work, but using any CSS selector or XPath seems to always produce zero results. Non-fragment search works as I'd expect.
The text was updated successfully, but these errors were encountered:
Searching for an element ('p') does work, but using any CSS selector or XPath seems to always produce zero results. Non-fragment search works as I'd expect.
The text was updated successfully, but these errors were encountered: