Skip to main content

Bug Tracker

Side navigation

#6667 closed bug (fixed)

Opened June 14, 2010 03:40PM UTC

Closed September 22, 2011 01:41AM UTC

Last modified March 08, 2012 10:41PM UTC

submit event doesn't delegate in IE* under certain conditions

Reported by: salomvary Owned by: dmethvin
Priority: undecided Milestone: 1.7
Component: event Version: 1.4.2
Keywords: submit delegate live ie Cc:
Blocked by: Blocking:
Description

If 'click' was delegated to the same context element, delegated 'submit' event handler will never be called.

All IE versions (IE6, IE7, IE8) are affected.

Example:

var first = 'body';

var second = 'body';

jQuery(first).delegate('foobar','click', jQuery.noop);

jQuery(second).delegate('form','submit', function(){

alert('submit');

return false;

});

'body'/'body': broken

'body'/'html': works

document/document: broken

document/'body': works

..and so on

Attachments (1)
  • testcase.html (0.4 KB) - added by salomvary June 14, 2010 03:41PM UTC.
Change History (6)

Changed November 11, 2010 03:24AM UTC by dmethvin comment:1

milestone: 1.4.31.4.5
priority: → undecided
status: newopen

http://jsfiddle.net/dmethvin/2NXAj/

For IE8, appears to have been broken in 1.4.2, fixed in 1.4.3 and broken again in 1.4.4.

Changed September 08, 2011 01:37PM UTC by dmethvin comment:2

I do not see a failure with 1.6.3 but will keep this open and retest with 1.7.

Changed September 08, 2011 05:39PM UTC by dmethvin comment:3

milestone: 1.next1.7
owner: → dmethvin
status: openassigned

Changed September 22, 2011 01:41AM UTC by dmethvin comment:4

resolution: → fixed
status: assignedclosed

I rechecked with the 1.7 event code and this works now.

https://github.com/jquery/jquery/commit/a4cdbf09ee97471ec041d83ceb8f3feb9825b2a1

Changed March 05, 2012 11:48AM UTC by Landgraf_Paul comment:5

Replying to [comment:4 dmethvin]:

I rechecked with the 1.7 event code and this works now. https://github.com/jquery/jquery/commit/a4cdbf09ee97471ec041d83ceb8f3feb9825b2a1

No works for me. Tested under internet Explorer 9.

Changed March 05, 2012 01:29PM UTC by dmethvin comment:6

The test case in comment 1 continues to work for me, tested in IE7 and IE9. Please open a new ticket with a test case.