Side navigation
#8550 closed bug (fixed)
Opened March 17, 2011 11:05AM UTC
Closed April 07, 2011 03:01AM UTC
Incorrect custom event bind
Reported by: | perfectworks@gmail.com | Owned by: | dmethvin |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | event | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Both document & document.body has beean binded a custom event "error". When some element trigger a custom event "error.network", only document's event handler triggered;
Attachments (0)
Change History (7)
Changed March 17, 2011 11:53AM UTC by comment:1
component: | unfiled → event |
---|---|
owner: | → perfectworks@gmail.com |
status: | new → pending |
Changed March 23, 2011 05:55AM UTC by comment:2
status: | pending → new |
---|
Yes, I've post a testcase in jsFiddle: http://jsfiddle.net/KYT5H/1/. It include jQuery 1.5.1, Please take a look at it.
Replying to [comment:1 dmethvin]:
Thanks for your time and interest in helping out with the jQuery project, but this is not a valid bug report. We require that all tickets have a valid and reproducible test case on jsFiddle in order for us to audit the issue. What you've placed here does not even include any Javascript or jQuery! If you can build a testcase that duplicates the error you've described here, we will be happy to take a look at it. If you need support, please head to the jQuery Forum or the #jquery IRC channel on irc.freenode.net. Thanks again!
Changed March 30, 2011 05:25PM UTC by comment:3
Your test case had extra <html><body> tags - here's a clean version ( problem sill persistant )
Changed March 30, 2011 05:53PM UTC by comment:4
Using a non-native event name: http://jsfiddle.net/danheberden/KYT5H/6/
Changed March 30, 2011 06:57PM UTC by comment:5
Here's a more thorough test case:
http://jsfiddle.net/cowboy/RbwZE/
There are two issues here:
The first, reported separately in #8712, is that custom events don't bubble up to window.
The second, more relevant, issue is that namespaced event handlers appear to be firing even when the appropriate namespace wasn't specified when triggering. This doesn't occur on the originating element, it only occurs during propagation.
Changed March 30, 2011 06:58PM UTC by comment:6
owner: | perfectworks@gmail.com → dmethvin |
---|---|
status: | new → assigned |
Changed April 07, 2011 03:01AM UTC by comment:7
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fixed by the 1.6 event reorg here:
https://github.com/jquery/jquery/commit/bfa32317d2a56145a2d1151c60ce2d71d1328dd9
Thanks for your time and interest in helping out with the jQuery project, but this is not a valid bug report. We require that all tickets have a valid and reproducible test case on jsFiddle in order for us to audit the issue. What you've placed here does not even include any Javascript or jQuery! If you can build a testcase that duplicates the error you've described here, we will be happy to take a look at it. If you need support, please head to the jQuery Forum or the #jquery IRC channel on irc.freenode.net. Thanks again!