[Webkit-unassigned] [Bug 22382] New: Middle click fires onclick event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 20 06:34:16 PST 2008


           Summary: Middle click fires onclick event
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.guildportal.com/Guild.aspx?GuildID=209853&Tab
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mads.s.ager at gmail.com

Middle clicking fires an onclick event in Safari 3.1.2 on Windows and in the
latests nightly build on Windows (r38492).

Middle clicking does not fire an onclick event in Firefox and IE.

Here is a simple test example:

function f() {
<div onclick="f()">
<a href="http://webkit.org">middle click here</a>
... or middle click here.

Some websites have links inside other elements that have onclick event handlers
that navigate.  If you middle click on one of those links, you will open the
link in a new tab, but you will also fire the onclick event handler which will
navigate the original window as well.  This is happening for instance on the
URL that I have entered for this bug when middle clicking one of the sub forum

Configure bugmail: https://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