2010-10-04 Erik Arvidsson <arv@chromium.org>
authorarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Oct 2010 23:07:10 +0000 (23:07 +0000)
committerarv@chromium.org <arv@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Oct 2010 23:07:10 +0000 (23:07 +0000)
commit2d518983591294f752c2d8d4d33aafe004e48221
tree8727adb10b09d5d9303581ce650d8263c9520258
parent478dd34d3eeef91062021220bc9de952ada7019a
2010-10-04  Erik Arvidsson  <arv@chromium.org>

        Reviewed by James Robinson.

        https://bugs.webkit.org/show_bug.cgi?id=47122
        Crash in classList when class attribute is empty.

        * fast/dom/HTMLElement/class-list-expected.txt:
        * fast/dom/HTMLElement/class-list-quirks-expected.txt:
        * fast/dom/HTMLElement/script-tests/class-list.js:
2010-10-04  Erik Arvidsson  <arv@chromium.org>

        Reviewed by James Robinson.

        https://bugs.webkit.org/show_bug.cgi?id=47122
        Crash in classList when class attribute is empty.

        Tests: fast/dom/HTMLElement/class-list.html

        * html/DOMTokenList.cpp:
        (WebCore::DOMTokenList::length):
        (WebCore::DOMTokenList::containsInternal):
        (WebCore::DOMTokenList::classNames):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLElement/class-list-expected.txt
LayoutTests/fast/dom/HTMLElement/class-list-quirks-expected.txt
LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
WebCore/ChangeLog
WebCore/html/DOMTokenList.cpp