Fix HTML Element description when a namespace is used

This commit is contained in:
iska
2015-04-01 01:08:45 +02:00
parent d716c3a678
commit fc89010c1c
+2 -2
View File
@@ -139,7 +139,7 @@
- (NSString *)description
{
NSMutableString *description = [NSMutableString stringWithFormat:@"<%@: %p ", self.class, self];
NSMutableString *description = [NSMutableString stringWithFormat:@"<%@: %p <", self.class, self];
if (self.namespace == HTMLNamespaceMathML) {
[description appendString:@"math "];
@@ -147,7 +147,7 @@
[description appendString:@"svg "];
}
[description appendFormat:@"<%@", self.tagName];
[description appendString:self.tagName];
[self.attributes enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
[description appendFormat:@" %@=\"%@\"", key, obj];
}];