Browse files

Also support ProcessingInstructions

  • Loading branch information...
1 parent 5cc479b commit ecc8e88e9d6e2da4fe4d8836247825120e61545c @bhollis bhollis committed with Jan 17, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/nokogiri/diff/xml/node.rb
View
2 lib/nokogiri/diff/xml/node.rb
@@ -24,6 +24,8 @@ def tdiff_equal(node)
self.name == node.name
when Nokogiri::XML::Text, Nokogiri::XML::Comment
self.text == node.text
+ when Nokogiri::XML::ProcessingInstruction
+ (self.name == node.name && self.content = self.content)
else
false
end

0 comments on commit ecc8e88

Please sign in to comment.