[Webkit-unassigned] [Bug 67827] event.stopPropagation does not prevent click events from activating links

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 8 22:16:03 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67827


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
          Component|New Bugs                    |Event Handling
                 CC|                            |ap at webkit.org,
                   |                            |eric.carlson at apple.com




--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2011-09-08 22:16:02 PST ---
This is correct behavior - default handler invocation is not part of event dispatch. It always happens after event dispatch unless the event is canceled (via calling preventDefault() or returning false from a handler). Resolving as INVALID.

Why are you saying that this is a bug? Are we doing something different from other browsers?

You should be able to implement the desired behavior by not using default handling, and instead implementing navigation in JS after checking event.target. Also, you could just position the video element on top of the link without making it a child of <a>.

The situation with video is a special case. Eric told me about it some time ago, but I don't remember the details - there may be another suggestion floating around.

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



More information about the webkit-unassigned mailing list