We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc = Nokogiri::HTML(' <html> <body> <div class="a b"></div> </body> </html> ') assert_not_nil doc.at_css(".b")
From https://groups.google.com/forum/?fromgroups=#!topic/nokogiri-talk/ICslbeshQhY
The text was updated successfully, but these errors were encountered:
The generated XPath query is currently
//*[contains(concat(' ', @class, ' '), ' b ')]
I think the right thing to do is this:
//*[contains(concat(' ', normalize-space(@class), ' '), ' b ')]
Sorry, something went wrong.
5e04845
fix: the CSS ~= operator handles non-space whitespace
~=
e45dedd
Related to #854.
No branches or pull requests
From https://groups.google.com/forum/?fromgroups=#!topic/nokogiri-talk/ICslbeshQhY
The text was updated successfully, but these errors were encountered: