Bug Tracker

Opened 13 years ago

Closed 12 years ago

#5682 closed bug (invalid)

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


The firebug report is: Permission denied to access property 'nodeType' from a non-chrome context 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 (3)

comment:1 Changed 13 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 13 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 12 years ago by addyosmani

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.