Skip to main content

Bug Tracker

Side navigation

#5124 closed bug (fixed)

Opened August 25, 2009 05:27PM UTC

Closed December 09, 2009 09:53PM UTC

trigger("submit") fails in Firefox

Reported by: mike.helgeson Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.4a1
Keywords: Cc:
Blocked by: Blocking:
Description

Triggering a native submit behavior on a form element is failing in Firefox 3.5.2. The problem seems to be a regression from the fix for http://dev.jquery.com/ticket/3533, which addressed MSIE throwing errors on certain triggered events where the type contains a colon character. I put together two simple samples to illustrate the difference between 1.3.2 and the latest build.

The trigger succeeds (1.3.2):

http://jsbin.com/ixege

The trigger fails (nightly):

http://jsbin.com/owisi

I have included a patch which seems to correct the issue.

Attachments (1)
  • event.diff (1.6 KB) - added by mike.helgeson August 25, 2009 05:28PM UTC.
Change History (3)

Changed October 31, 2009 10:31AM UTC by semper comment:1

In fact out of Opera 10, FF 3.5.2, Chrome 3.0 and IE 7 submit was triggered only in the latter.

Changed December 08, 2009 04:06PM UTC by mitallast@gmail.com comment:2

http://code.jquery.com/jquery-1.4a1.js

I replace the

1041 >> nativeFn();

to

1041 >> elem[type]();

It's working in firefox 3.5 and 3.6.beta4.

I think that the line

nativeFn = elem [type];

get a link or copy function.

this seems to fail with the closure, tore out the function of context.

Sorry for my english, and I learn Javascript less than one year.

Changed December 09, 2009 09:53PM UTC by john comment:3

resolution: → fixed
status: newclosed
version: 1.3.21.4a1