Modify ↓
Ticket #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: | |
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Adding this line of code fixed the problem, but I am not really sure it is a wise thing to do:
jQuery 1.4
Line 84: try { selector.nodeType } catch(e) { this.context = this[0] = selector = document; this.length = 1; return this; }