LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 00:05:30 +0000 (00:05 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 00:05:30 +0000 (00:05 +0000)
commite11e462a5b1ca46f4fc89c1d7eedb2b799d4eec4
treebfd64e0d4881c92e2bf5c8d72e91af2ad676a6a4
parenta47502ef4b28460f5221988a21832b2fce997d50
LayoutTests:

        Reviewed by John and Anders.

        - Test for <rdar://problem/4380576> onChange does not get called when field changed by return key

        * fast/forms/onchange-enter-submit-expected.txt: Added.
        * fast/forms/onchange-enter-submit.html: Added.

WebCore:

        Reviewed by John and Anders.

        - Fix for <rdar://problem/4380576> onChange does not get called when field changed by return key

        Test: fast/forms/onchange-enter-submit.html

        Blur (which will fire onChange appropriately) before submitting a form when pressing Enter.
        This matches the sequence of events fired in WinIE.

        * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
        * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::defaultEventHandler):

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