#5835 closed bug (fixed)
Inline script events and "live"
Reported by: | superware | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4.1 |
Component: | event | Version: | 1.4 |
Keywords: | inline events live | Cc: | |
Blocked by: | Blocking: |
Description
Registering a live event somehow affects inline script events, even when the live selector isn't related to the inlined element.
Attachments (2)
Change History (7)
Changed 13 years ago by
Attachment: | onclick.html added |
---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
I've found the problem.
liveHandler starts with a returnValue of true and in some cases changes it to false. This true value tells IE that it should fire the event, regardless of another handlers (or at least is what I suppose it's happening).
The fix is simple, it's to start the returnValue with undefined, and never change it to true. I've made a commit for that: http://github.com/irae/jquery/commit/6438ab0da979307d8ea0ec5183d6a5e5a57bead8
I was unable to create a test case. Nothing I could do with javascript seems to simulate the bug. Regardless of that, I've tested my fix in firefox, chrome and IE6 and no regressions were made by this simple fix.
I'll attach my debug case with draft for testcase. If anyone figures out how to simulate this with javascript, please, let me know.
comment:4 Changed 13 years ago by
Priority: | critical → major |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Forgot to mention, seems to be an IE6/7 issue.