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 XML::Reader working with non-existent attributes #1254

Closed

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Feb 25, 2015

nokogiri now bundles a newer libxml, so doesn't have to
worry about old bad behavior, and the workaround was broken

without this fix, the test case would return
reader.attribute('other') # => bob
apparently picking up the default namespace for any missing attributes

nokogiri now bundles a newer libxml, so doesn't have to
worry about old bad behavior, and the workaround was broken
@codekitchen
Copy link
Contributor

👍 this fixes the issue i'm having trying to use reader.attribute(name) to get the values of attributes that may or may not be present.

@flavorjones
Copy link
Member

Thanks for this PR, tentatively targetting 1.6.8 for it.

@flavorjones flavorjones added this to the 1.6.8 milestone Nov 22, 2015
@flavorjones
Copy link
Member

Merged manually. Thank you again for this PR and for your amazing patience!

This will be in 1.6.8 final.

flavorjones added a commit that referenced this pull request May 28, 2016
for reader attribute fix #1254
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.

3 participants