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
doc = Nokogiri::Slop("<item><title>foo</title><description>this is the foo thing</description></item>")
p "doc.item.title:", doc.item.title
p "doc.item.description:", doc.item.description
Hi! Unfortunately, we can't fix this. The reason is because Nokogiri::XML::Node responds to "description". With HTML documents, "description" returns a description of the node, where on XML documents, it returns nil.
I've added a hack for the slop visitor that lets you use an underscore if the method is already defined. So you can do this:
Prints:
The text was updated successfully, but these errors were encountered: