LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Jun 2006 15:37:58 +0000 (15:37 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 17 Jun 2006 15:37:58 +0000 (15:37 +0000)
commit412707ad9deb4d54830c5afb29939beab1a5b748
treefb0ae6d6e8e372327bd3ab0d7a5fc175a44f06a8
parent48a5e1708f30232dbebd5b0663a867ac9363244e
LayoutTests:

        Reviewed by Darin.

        Test cases for
        <http://bugzilla.opendarwin.org/show_bug.cgi?id=6282>

        * fast/dom/select-selectedIndex-multiple.html: Added.
        * fast/dom/select-selectedIndex.html: Added.

WebCore:

        Reviewed by Darin.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6282:
        Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex

        Update selectedIndex when a new option is added using javascript.

        * bindings/js/kjs_html.cpp:
        (KJS::JSHTMLSelectCollection::put):
        * html/HTMLSelectElement.cpp:
        (WebCore::HTMLSelectElement::setSelectedIndex):
        (WebCore::HTMLSelectElement::setOption):
        (WebCore::HTMLSelectElement::setLength):
        * html/HTMLSelectElement.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/select-selectedIndex-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/select-selectedIndex-multiple-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/select-selectedIndex-multiple.html [new file with mode: 0644]
LayoutTests/fast/dom/select-selectedIndex.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_html.cpp
WebCore/html/HTMLSelectElement.cpp
WebCore/html/HTMLSelectElement.h