LayoutTests:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 07:05:53 +0000 (07:05 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 07:05:53 +0000 (07:05 +0000)
commite98e81e06dc2fb20e4a3d172427f177acf40d0f3
treeaed2c68d2ae4148007ea4d90a1aca2eb426c2b48
parent0fee4c8eeabaf2f79fbd2f5a8ca49e86685bc816
LayoutTests:

        Reviewed by Beth Dakin.

        Tests for the change and blur events in input elements.

        * fast/events/onchange-passwordfield-expected.txt: Added.
        * fast/events/onchange-passwordfield.html: Added.
        * fast/events/onchange-searchfield-expected.txt: Added.
        * fast/events/onchange-searchfield.html: Added.
        * fast/events/onchange-textfield-expected.txt: Added.
        * fast/events/onchange-textfield.html: Added.

WebCore:

        Reviewed by Beth Dakin.

        Fixed <rdar://problem/4870551> 9A320: <input type="text"> no longer
        dispatches onchange event in response to enter key

        To match our old behavior and FF, we need to dispatch onchange in response to the
        ENTER key. The strategy here is just to dispatch a blur event, since that's how
        the search field always worked, and the DOM spec says onchange only fires
        as a precursor to blur.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/onchange-passwordfield-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onchange-passwordfield.html [new file with mode: 0644]
LayoutTests/fast/events/onchange-searchfield-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onchange-searchfield.html [new file with mode: 0644]
LayoutTests/fast/events/onchange-textfield-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/onchange-textfield.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLInputElement.cpp