Side navigation
#13425 closed bug (notabug)
Opened February 10, 2013 02:03AM UTC
Closed February 10, 2013 02:13AM UTC
Last modified February 10, 2013 02:58PM UTC
event.preventDefault not working in Firefox
Reported by: | Jonathan | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you load http://jsfiddle.net/yramagicman/smShV/ in Firefox, you'll see the bug. The link functions even though I've told it not to via even.preventDefault(). This only happens in Firefox (v18.0.2). Current Webkit browsers and Opera are fine. I don't have proper access to IE because I'm on a Mac, but what I have (cloud IE 9 through Chrome) returns the same result. Firebug returns "even not defined" and jQuery 1.9.1 line numbers 3074 and 2750. The bug exists both in 1.9.1 and the 2.0b1 available on jsfiddle.
Side note:
return: false;
also does not prevent the Firefox from following the link and loading the page. I have no extensions loaded (except firebug) and my preferences are all essentially the defaults.
Attachments (0)
Change History (2)
Changed February 10, 2013 02:13AM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
Changed February 10, 2013 02:58PM UTC by comment:2
Replying to [comment:1 dmethvin]:
I don't think there's a standard behavior for what to do when there is a JavaScript error in an event handler. If you declare the event
arg it works consistently. http://jsfiddle.net/smShV/1/
ah. Thanks!
I don't think there's a standard behavior for what to do when there is a JavaScript error in an event handler. If you declare the
event
arg it works consistently. http://jsfiddle.net/smShV/1/