Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#14423 closed bug (notabug)

Internet Explorer leaks click event on body after adding an overlay-div in a mousedown handler

Reported by: m.kurz@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0-beta1
Keywords: Cc:
Blocked by: Blocking:

Description

In a mousedown event-handler of a div another new div is created and appended to the body. This new div has position:fixed (can also be position:absolute) and has 100% width and 100% height. Therefore it immediately covers the source div which triggered the mouse down event. Now with the latest Google Chrome (v30), latest Firefox (v24), Opera v12.16 and even with a older Safari v5.1.1 (on Windows) after the mousedown event no click event gets fired on an event listener attached to the body. Only Internet Explorer (both 9 and 10) does fire the click event on the body afterwards! Why? Is this actually a bug in IE? Shouldn't jQuery normalize this behaviour?

Here is a full working example showing this inconsistent behaviour: http://jsfiddle.net/Fh4sK/

I also asked for help on stackoverflow: http://stackoverflow.com/questions/19215427/internet-explorer-leaks-click-event-after-adding-an-overlay-in-a-jquery-mousedow

If you read my post on stackoverflow, right now I'm not yet sure which browsers are actually show the wrong behaviour.

Hopefully someone from the jQuery team knows what's going on here.

Change History (3)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

Determine which behavior is incorrect according to the standard and file a bug with the appropriate browsers. Then file a new ticket here pointing to the browser tickets so we can decide whether to normalize the behavior.

comment:3 Changed 6 years ago by anonymous

Related jQuery ticked: 11498

Note: See TracTickets for help on using tickets.