#9820 closed bug (invalid)
$(window).mouseleave() throws "compareDocumentPosition is not a function"
Reported by: | Craig Thompson | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Binding the mouseleave event to the window element throws an error in jQuery 1.6.2 and edge.This didn't happen in 1.6.2
Test case: http://jsfiddle.net/tqLwM/2/
Change History (3)
comment:1 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
comment:3 Changed 11 years ago by
Yes, my update is that you are doing it wrong. Do not attach mouseleave events to window
. No further updates should be required.
Note: See
TracTickets for help on using
tickets.
Not sure why the behavior changed, but it is wrong to attach that event to a
window
. It works withdocument
as it should.