[Webkit-unassigned] [Bug 15173] Middle click should not fire onclick event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 17 12:46:32 PDT 2008


idealisms at gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |idealisms at gmail.com

------- Comment #4 from idealisms at gmail.com  2008-04-17 12:46 PDT -------
It looks like in Firefox, click event handlers only fire for left click.

In IE7, click events fire for left click or middle click.  However, anchor tags
seem to be a special case where if there's a href, the href is opened in a new
tab.  Otherwise, the click event handler runs.

As far as I can tell, it seems like the click event should fire for middle
clicks, but the spec seems ambiguous:

Here's a good test case:

Also, this is what causes middle clicking a link in Gmail to open in a new
window rather than as a background tab in Safari.

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