Side navigation
#5682 closed bug (invalid)
Opened December 19, 2009 02:14PM UTC
Closed November 08, 2010 07:19AM UTC
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: |
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.
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; }