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

Inconsistent namespaced attribute access for SVG nested in HTML #861

Closed
mikepfirrmann opened this issue Mar 13, 2013 · 2 comments
Closed

Comments

@mikepfirrmann
Copy link

Nokogiri::XML::Node.[] and Nokogiri::XML::Node.attribute return different values for namespaced attributes of SVGs nested within HTML documents.

For example, if you call try and access the value of the xlink:href attribute of a nested SVG image node, image["xlink:href"] returns nil while image.attribute("xlink:href") will return the actual value.

This issue appears to affect versions 1.5.6 and above.

Demonstration script

@flavorjones
Copy link
Member

@ender672 - thanks for the fix. Please remember to edit the CHANGELOG files, though!

@ender672
Copy link
Member

Will do!

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

No branches or pull requests

3 participants