nokogiri
nokogiri copied to clipboard
Fix namespace reparenting issue #2494.
What problem is this PR intended to solve?
This PR is intended to address #2494, issues with the reparenting of nodes with prefix collisions.
Closes #2494
Have you included adequate test coverage?
I've added a test as part of the namespace testing under test/xml/test_namespace.rb
.
Does this change affect the behavior of either the C or the Java implementations?
C implementations are corrected, the java implementation does not suffer from this issue (tests pass correctly with no code change).
I've kicked off CI.
I've rebased onto current main
Looks like this PR breaks some downstream users of Nokogiri. Would you be able to take a look at what's going on there, please?
- https://github.com/sparklemotion/nokogiri/runs/8059235811?check_suite_focus=true
- https://github.com/sparklemotion/nokogiri/runs/8059235851?check_suite_focus=true
I think I might be able to take a look, yeah. Let me see which ones get broken. I couldn't find any breaks in the main tests but maybe I didn't run some.