Bug Tracker

Modify

Ticket #5682 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

mouseenter/mouseleave from or to a scrollbar cause error in Firefox

Reported by: dragon Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.4a1
Keywords: mouseleave mouseover live Cc:
Blocking: Blocked by:

Description

The firebug report is: Permission denied to access property 'nodeType' from a non-chrome context  http://127.0.0.1/js/_lib/jquery.js Line 76

What I have is a div with overflow:auto (I guess scroll should be OK too). And : $("a",/* the div as context*/).live("mouseleave", function () {

do stuff;

}, /* an object here */);

When I mouse the mouse cursor from an Anchor node to the scrollbar the error is raised and my function is not triggered.

Change History

comment:1 Changed 3 years ago by dragon

Adding this line of code fixed the problem, but I am not really sure it is a wise thing to do:

jQuery 1.4

  • Date: Wed Jan 13 15:23:05 2010 -0500

Line 84: try { selector.nodeType } catch(e) { this.context = this[0] = selector = document; this.length = 1; return this; }

comment:2 Changed 3 years ago by dragon

I do not know hot to close this one - apparently it was a firebug issue. It stopped appearing in 1.4.1 (but I also updated firebug). Sorry for the invalid report.

comment:3 Changed 3 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to invalid

Closing as this bug has been confirmed by the submitting user as being a FireBug issue and not a jQuery core issue.

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.