Ticket #8456 (closed bug: fixed)
trigger('mouseover') no longer triggers mouseenter
| Reported by: | john.firebaugh | Owned by: | dmethvin |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.5.2 |
| Component: | event | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Alerts in 1.4.4, but not in 1.5. Caused by this commit:
https://github.com/jquery/jquery/commit/b46dff39c35ae05f92f6909ff8d07aa470e4a8d4
Change History
comment:1 Changed 2 years ago by dmethvin
- Priority changed from undecided to blocker
- Status changed from new to open
- Component changed from unfiled to event
- Milestone changed from 1.next to 1.5.2
comment:2 Changed 2 years ago by henrik.hjelte@…
Ah, someone saw this bug before me, I have another fiddle example that documents it and shows the fix: http://jsfiddle.net/zg6Na/18/
This works with jquery up to and including 1.5, starts breaking with 1.5.1 The problem is on line 2788 of dist/jquery.js (of 1.5.1)
Modified jquery.js
2788
- if ( parent !== document && !parent.parentNode ) {
+ if ( parent !== document && (parent && !parent.parentNode )) {
comment:3 Changed 2 years ago by dmethvin
- Owner set to dmethvin
- Status changed from open to assigned
comment:4 Changed 2 years ago by dmethvin
Fix: https://github.com/jquery/jquery/pull/266
BTW, john.firebaugh, thanks for the report and for finding the problem commit!
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
