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: DocumentFragment#path with libxml > 2.9.10 #2251

Merged
merged 2 commits into from May 26, 2021
Merged

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Fixes #2250 which describes a segfault when calling DocumentFragment#path with libxml > 2.9.10.

Have you included adequate test coverage?

Yes. Introduced test coverage for both DocumentFragment#path and Document#path

Does this change affect the behavior of either the C or the Java implementations?

This maintains the behavior of the C extension across versions of libxml2. That, however, doesn't mean that the behavior makes sense, and we should fix it when we're ready to introduce breaking changes into DocumentFragment#xpath.

@codeclimate
Copy link

codeclimate bot commented May 26, 2021

Code Climate has analyzed commit 2821b79 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 93.2% (0.0% change).

View more on Code Climate.

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.

[bug] Nokogiri::HTML::DocumentFragment#path causes a segmentation fault
1 participant