[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
http://bugs.webkit.org/show_bug.cgi?id=15173
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:
http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-click
Here's a good test case:
http://www.w3.org/WAI/UA/TS/html401/cp0102/0102-ONCLICK-MULTIPLE-EVENTS.html
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