Ticket #222 (closed bug: fixed)
Hover Bug
| Reported by: | brandon.aaron@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | event | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:2 Changed 7 years ago by brandon.aaro
- Status changed from closed to reopened
- Resolution fixed deleted
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:3 Changed 7 years ago by joern
- Status changed from reopened to closed
- Resolution set to fixed
Fixed.
comment:4 Changed 7 years ago by anonymous
- Priority set to blocker
- Resolution set to invalid
- Status changed from reopened to closed
- Component set to ajax
- Type set to bug
SPAMPOLICE
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Fixed in SVN.