Bug Tracker

Modify

Ticket #9820 (closed bug: invalid)

Opened 23 months ago

Last modified 9 months ago

$(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:
Blocking: Blocked by:

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

comment:1 Changed 23 months ago by dmethvin

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to event

Not sure why the behavior changed, but it is wrong to attach that event to a window. It works with document as it should.

comment:2 Changed 9 months ago by martin@…

I can confirm this on jQuery 1.8.0. Any updates?

comment:3 Changed 9 months ago by dmethvin

Yes, my update is that you are doing it wrong. Do not attach mouseleave events to window. No further updates should be required.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.