Skip to main content

Bug Tracker

Side navigation

#14423 closed bug (notabug)

Opened October 07, 2013 12:26PM UTC

Closed November 10, 2013 07:34PM UTC

Last modified January 02, 2014 01:22PM UTC

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

Reported by: m.kurz@irregular.at 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.

Attachments (0)
Change History (3)

Changed November 10, 2013 07:34PM UTC by dmethvin comment:1

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.

Changed January 02, 2014 01:18PM UTC by anonymous comment:2

Changed January 02, 2014 01:22PM UTC by anonymous comment:3

Related jQuery ticked: 11498