Opened 16 years ago
Closed 16 years ago
#222 closed bug (fixed)
Hover Bug
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | event | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In firefox if you have a div with an input element inside of it and use the $().hover event on the div, then firefox will report an uncaught exception.
uncaught exception: Permission denied to get property HTMLDivElement.parentNode
The bug can be seen here: http://brandonaaron.net/jquery/hoverbug/hover.html
The patch is simple and can be seen in action here: http://brandonaaron.net/jquery/hoverbug/hover.patched.html
Here is the diff: http://brandonaaron.net/jquery/hoverbug/hover.diff
Change History (6)
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 16 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
In the hover method please change this line:
while ( p && p != this ) try { p = p.parentNode } catch(e) { p = null; };
to this:
while ( p && p != this ) try { p = p.parentNode } catch(e) { p = this; };
This solves a problem just brought up on the mailing list.
Here is the example page with the fix: http://brandonaaron.net/jquery/hoverbug/hover.patched.html and the broken version: http://brandonaaron.net/jquery/hoverbug/hover.html
comment:4 Changed 16 years ago by
Component: | → ajax |
---|---|
Priority: | → blocker |
Resolution: | → invalid |
Status: | reopened → closed |
Type: | → bug |
SPAMPOLICE
comment:5 Changed 16 years ago by
Cc: | Roy added; [email protected]… removed |
---|---|
Component: | ajax → 1 |
Keywords: | Roy added; "" removed |
Milestone: | → 1 |
Priority: | blocker → 1 |
Summary: | [PATCH] $().hover error in firefox → Roy |
Type: | bug → 1 |
Version: | → 1 |
comment:6 Changed 16 years ago by
Cc: | Roy removed |
---|---|
Component: | → event |
Keywords: | Roy removed |
Priority: | → major |
Resolution: | → fixed |
Status: | reopened → closed |
Summary: | Roy → Hover Bug |
Type: | → bug |
Fixed in SVN.