[Webkit-unassigned] [Bug 17649] New: Returning false in onmousedown handler: different behavior in various browsers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 3 02:09:25 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17649

           Summary: Returning false in onmousedown handler: different
                    behavior in various browsers
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yuzhu.shen at gmail.com


Considering the following script:
================================
<form action="">
  <select id="sel">
    <option>a</option>
    <option>b</option>
  </select>
  <input id="in" size="10">
</form>

<script type="text/javascript">
    function MouseClick() {
        return false;
    }
    document.onmousedown = MouseClick;
</script>
================================

By returning false, the default action for onmousedown event is prevented in
Safari.
However, IE and Firefox handle this in different way. IE doesn't block the
default processing of the event for both <select> list and <input> text box.
Firefox does block the default processing for <input> text box, but doesn't do
so for <select> list.

Should we modify the behavior of WebKit to match IE or Firefox?

This problem affects a very popular site in China:
Go to: www.soufun.com
The drop-down lists and input box shown in the snapshot cannot be clicked in
Safari. (IE: OK. FF: drop-down lists - OK; input box - Not OK.)

Tested in the following browsers: IE7; FF2/3; Safari 3.0.4


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list