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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Example page</title> </head> <body> <style type="text/css" media="screen, print"> @import 'http://wwwimg.bbc.co.uk/home/release-31-0/style/homepage.min.css'; </style> <p>Test</p> </body> </html>
--cut--
p = Nokogiri::HTML(IO.read('test.html')) p.at('//style').inner_html = '' # => Boom!
The text was updated successfully, but these errors were encountered:
This doesn't break for me. What version of nokogiri and libxml2 are you using?
Sorry, something went wrong.
It's libxml2-2.6.26-2.1.2.7 (CentOS 5.3) and nokogiri (1.3.2)
i can't even get 2.6.26 to build on ubuntu intrepid. sigh.
fixing a segfault when an empty string is sent to Node#inner_html=. closed by c14d3b2
No branches or pull requests
--cut--
The text was updated successfully, but these errors were encountered: