Skip to content

(jruby) namespaced attributes#2679

Merged
flavorjones merged 2 commits intomainfrom
2677-jruby-namespaced-attributes
Jun 24, 2024
Merged

(jruby) namespaced attributes#2679
flavorjones merged 2 commits intomainfrom
2677-jruby-namespaced-attributes

Conversation

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Oct 21, 2022

What problem is this PR intended to solve?

#2677 pointed out inconsistent behavior in the JRuby implementation with respect to namespaced attributes.

This may be an incomplete fix, but it's good enough to ship.

Closes #2677

Have you included adequate test coverage?

Yes

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

This PR fixes the JRuby behavior to match the CRuby behavior.

@flavorjones flavorjones marked this pull request as draft October 21, 2022 21:33
@flavorjones flavorjones force-pushed the 2677-jruby-namespaced-attributes branch from b800369 to b4819c5 Compare October 21, 2022 21:34
@flavorjones flavorjones force-pushed the 2677-jruby-namespaced-attributes branch from b4819c5 to be4aebf Compare June 24, 2024 15:47
@flavorjones flavorjones marked this pull request as ready for review June 24, 2024 15:47
including a failing test for JRuby round-trip of an attribute
@flavorjones flavorjones force-pushed the 2677-jruby-namespaced-attributes branch from be4aebf to db8d3f1 Compare June 24, 2024 15:47
@flavorjones flavorjones changed the title [draft] (jruby) namespaced attributes (jruby) namespaced attributes Jun 24, 2024
Previously, it was matching against the full name.

Also, make sure that we create new attributes with
setAttributeNS (even if the URI is null) so that we can retrieve with
`localName`. Note that we need additional logic to handle unknown
namespaces.
@flavorjones flavorjones force-pushed the 2677-jruby-namespaced-attributes branch from db8d3f1 to c142785 Compare June 24, 2024 15:51
@flavorjones flavorjones merged commit eb66758 into main Jun 24, 2024
@flavorjones flavorjones deleted the 2677-jruby-namespaced-attributes branch June 24, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow attributes without namespace on jRuby

2 participants