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
raw_content = <<-XML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <script type="text/javascript" src="/test.js"></script> </head> <body> </body> </html> XML require 'nokogiri' doc = Nokogiri::XML.parse(raw_content, nil, 'UTF-8') puts doc.to_xhtml
[snip] <script src="/test.js" type="text/javascript"> </script> [snip]
[snip] <script src="/test.js" type="text/javascript" /> </script> [snip]
Note how the first script tag is self-closed.
script
The text was updated successfully, but these errors were encountered:
I can't reproduce this on master using your script.
Sorry, something went wrong.
I can’t test on master since I don’t know how to install Nokogiri from master, unfortunately…
It should be as simple as "rake compile" after getting appropriate deps, but if you have trouble I could try to build a gem to test.
Yup, this one is fixed in master!
No branches or pull requests
Steps to reproduce
Expected output
Actual output
Note how the first
script
tag is self-closed.The text was updated successfully, but these errors were encountered: