Index: Source/WebCore/dom/StyledElement.cpp |
=================================================================== |
--- Source/WebCore/dom/StyledElement.cpp (revision 124075) |
+++ Source/WebCore/dom/StyledElement.cpp (working copy) |
@@ -172,7 +172,7 @@ |
ensureAttributeData()->setClass(newClassString, shouldFoldCase); |
if (DOMTokenList* classList = optionalClassList()) |
static_cast<ClassList*>(classList)->reset(newClassString); |
- } else |
+ } else if (attributeData()) |
attributeData()->clearClass(); |
setNeedsStyleRecalc(); |
} |