@@ -118,10 +118,13 @@ } - (bool)isEqual: (id)object { OFXMLAttribute *attribute; + + if (object == self) + return true; if (![object isKindOfClass: [OFXMLAttribute class]]) return false; attribute = object;