Skip to content

Commit

Permalink
Also support ProcessingInstructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis authored and postmodern committed Jan 18, 2013
1 parent 5cc479b commit ecc8e88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nokogiri/diff/xml/node.rb
Expand Up @@ -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
Expand Down

0 comments on commit ecc8e88

Please sign in to comment.