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

fix a monkey patch introduced in #1251 #1743

Closed
wants to merge 1 commit into from
Closed

fix a monkey patch introduced in #1251 #1743

wants to merge 1 commit into from

Conversation

jvshahid
Copy link
Member

the patch accidentally removed the parents of the TR element. This caused any
document fragment with a dangling (i.e. with no parent) TD or TR element to
cause a stack overflow

fixes #1501

the patch accidentally removed the parents of the TR element. This caused any
document fragment with a dangling (i.e. with no parent) TD or TR element to
cause a stack overflow

fixes #1501
@jvshahid
Copy link
Member Author

I actually thought about this fix a little more and I don't like it. I think we should get rid of the monkey patch and just accept that different parsing libraries behave differently, something we agreed to do a while back. I'll close this pr and submit a new one with the monkey patch removed and change the xpath in this test to be more permissive

@jvshahid jvshahid closed this Mar 25, 2018
@jvshahid jvshahid deleted the fix-1501 branch March 25, 2018 17:33
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.

JRuby Nokogiri raises StackOverflowError when parsing some pages
1 participant