You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Nokogiri::XML::Node.[]
andNokogiri::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 SVGimage
node,image["xlink:href"]
returnsnil
whileimage.attribute("xlink:href")
will return the actual value.This issue appears to affect versions 1.5.6 and above.
Demonstration script
The text was updated successfully, but these errors were encountered: