WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:52:49 +0000 (18:52 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:52:49 +0000 (18:52 +0000)
commite074e058318dca0dd6489cb51f9533855e465183
treea4c011c890adfbc1434077133264d994d7d5ab08
parent5a58b7a00cea3756e9f4d58c6d2f39414baa9045
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
LayoutTests/ChangeLog
LayoutTests/fast/dom/class-all-whitespace-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/class-all-whitespace.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/StyledElement.cpp