Side navigation
#222 closed bug (fixed)
Opened September 28, 2006 02:40AM UTC
Closed November 18, 2006 01:10AM UTC
Hover Bug
| Reported by: | brandon.aaron@gmail. | 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:
Attachments (0)
Change History (6)
Changed October 01, 2006 05:40PM UTC by comment:1
| resolution: | → fixed |
|---|---|
| status: | new → closed |
Changed October 03, 2006 09:03PM UTC by comment:2
| 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:
Changed October 06, 2006 02:05PM UTC by comment:3
| resolution: | → fixed |
|---|---|
| status: | reopened → closed |
Fixed.
Changed October 26, 2006 02:25PM UTC by comment:4
| component: | → ajax |
|---|---|
| priority: | → blocker |
| resolution: | → invalid |
| status: | reopened → closed |
| type: | → bug |
SPAMPOLICE
Changed November 05, 2006 11:07AM UTC by comment:5
| cc: | brandon.aaron@gmail.com → Roy |
|---|---|
| component: | ajax → 1 |
| keywords: | "" → Roy |
| milestone: | → 1 |
| priority: | blocker → 1 |
| summary: | [PATCH] $().hover error in firefox → Roy |
| type: | bug → 1 |
| version: | → 1 |
Changed November 18, 2006 01:10AM UTC by comment:6
| cc: | Roy |
|---|---|
| component: | → event |
| keywords: | Roy |
| priority: | → major |
| resolution: | → fixed |
| status: | reopened → closed |
| summary: | Roy → Hover Bug |
| type: | → bug |
Fixed in SVN.