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

wrong content in jruby when node includes new lines #737

Merged
merged 2 commits into from
Jul 31, 2012
Merged

wrong content in jruby when node includes new lines #737

merged 2 commits into from
Jul 31, 2012

Conversation

esse
Copy link
Contributor

@esse esse commented Jul 30, 2012

Steps to reproduce:

  1. write string containing new line inside it, for example:
</div>```


2. parse it using nokogiri for ruby - html.content will return \n as expected

3. parse it using nokogiri for jruby - html.content will return empty string - as unexpected


This test case is inside test/html/test_document.rb file (test: test_content_size).

Second commit contain fix for this bug (inside XmlNode.java).

jvshahid added a commit that referenced this pull request Jul 31, 2012
wrong content in jruby when node includes new lines
@jvshahid jvshahid merged commit 77e099a into sparklemotion:master Jul 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants