WebCore:
Reviewed by Oliver Hunt.
- fix ASSERTION FAILED: !HashTranslator::equal(KeyTraits::emptyValue(), key) when a class attribute is all-whitespace
Test: fast/dom/class-all-whitespace.html
* dom/StyledElement.cpp:
(WebCore::StyledElement::parseMappedAttribute): Check if there is any
non-whitespace character in the class attribute.
LayoutTests:
Reviewed by Oliver Hunt.
- test that an all-whitespace class attribute does not cause an assertion failure
* fast/dom/class-all-whitespace-expected.txt: Added.
* fast/dom/class-all-whitespace.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27441
268f45cc-cd09-0410-ab3c-
d52691b4dbfc