LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 23:49:39 +0000 (23:49 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Aug 2006 23:49:39 +0000 (23:49 +0000)
commite43dded1103de0369a857454e5718eb0f85c0e94
tree2ddafa88875cfc4a2c92db7a67390b7bc28c2aa5
parent26d01f099feff91ff565aa8fc83328cc6844cce8
LayoutTests:

        Reviewed by Brady.

        Test case for <rdar://problem/4656274>
        REGRESSION: option elements are selected when added regardless of "selected" property

        * fast/forms/option-constructor-selected-expected.txt: Added.
        * fast/forms/option-constructor-selected.html: Added.

WebCore:

        Reviewed by Brady.

        - Fix for <rdar://problem/4656274>
        REGRESSION: option elements are selected when added regardless of "selected" property

        Test: fast/forms/option-constructor-selected.html

        * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setOption):
        When adding an option element, check that the option element is selected before calling setSelectedIndex.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/option-constructor-selected-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/option-constructor-selected.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLSelectElement.cpp