lib/compare-xml.rb in compare-xml-0.6 vs lib/compare-xml.rb in compare-xml-0.61
- old
+ new
@@ -131,10 +131,10 @@
return true if opts[:ignore_comments]
t1, t2 = n1.content, n2.content
t1, t2 = collapse(t1), collapse(t2) if opts[:collapse_whitespace]
unless t1 == t2
status = UNEQUAL_COMMENTS
- addDifference(n1, n2, t1, t2, opts, differences)
+ addDifference(n1.parent, n2.parent, t1, t2, opts, differences)
end
status
end
\ No newline at end of file