Skip to content
New issue

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

Greater than (>) in "style" element is being HTML encoded with JRuby #1315

Closed
tbeauvais opened this issue Jul 11, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@tbeauvais
Copy link
Contributor

If you run the following code in JRuby it will result in the > in the style element being HTML entity encoded >, this does not occur with MRI.

html = '<!DOCTYPE html><html><head><style>tr > div { display:block; }</style></head><body><h1>Mr. Belvedere Fan > Club</h1></body></html>'
html_doc = Nokogiri::HTML(html)
puts html_doc.to_html
<!DOCTYPE html >
<html><head><style>tr &gt; div { display:block; }</style></head><body><h1>Mr. Belvedere Fan &gt; Club</h1></body></html>

I have a pull request to address this: #1316

@flavorjones
Copy link
Member

@tbeauvais - Thanks for pointing this out. I'll take a look at your PR!

@flavorjones flavorjones self-assigned this Aug 31, 2015
@flavorjones flavorjones added this to the 1.6.8 milestone May 27, 2016
@flavorjones
Copy link
Member

Your PR was merged into master. This will be fixed in 1.6.8 final.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants