Fix for bugzilla bug 4573, make sure click() fires CLICK and not KHTML_CLICK,
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Aug 2005 22:59:33 +0000 (22:59 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Aug 2005 22:59:33 +0000 (22:59 +0000)
commit5ff5343c660104cbfbe90b314f14740c229ec54e
tree117a83ac2bf2c389142e96d0d8527062d21815ec
parentc4fa5dbe7c6c57fc88ad633604aca7a54fc2bb88
Fix for bugzilla bug 4573, make sure click() fires CLICK and not KHTML_CLICK,
so that the click() method on checkboxes actually works.

Also eliminate the WinIE compatibiilty for event.button and match the
standard DOM behavior instead (like Firefox does).

        Reviewed by darin

        Test cases added: None, since one of the level 2 DOM tests changes to
pass and tests this feature.

        * khtml/ecma/kjs_events.cpp:
        (KJS::DOMMouseEvent::getValueProperty):
        * khtml/html/html_elementimpl.cpp:
        (HTMLElementImpl::click):
        * layout-tests/dom/html/level2/html/HTMLInputElement21-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/dom/html/level2/html/HTMLInputElement21-expected.txt
WebCore/ChangeLog-2005-12-19
WebCore/khtml/ecma/kjs_events.cpp
WebCore/khtml/html/html_elementimpl.cpp