Fix bug where HTML meta is counted as text content

This commit is contained in:
Tzu-ping Chung
2014-09-17 11:17:57 +08:00
parent c57d907788
commit 2d1abfdec5

View File

@@ -192,9 +192,10 @@ static NSString *MPAutosavePropertyKey(
case 11:
if ([self respondsToSelector:@selector(tagName)])
{
NSString *tagName = [(id)self tagName];
NSString *tagName = [(id)self tagName].uppercaseString;
if ([tagName isEqualToString:@"SCRIPT"]
|| [tagName isEqualToString:@"STYLE"])
|| [tagName isEqualToString:@"STYLE"]
|| [tagName isEqualToString:@"HEAD"])
break;
}
for (DOMNode *c = self.firstChild; c; c = c.nextSibling)