Skip to main content

Bug Tracker

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:

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:

The patch is simple and can be seen in action here:

Here is the diff:

Attachments (0)
Change History (6)

Changed October 01, 2006 05:40PM UTC by joern comment:1

resolution: → fixed
status: newclosed

Fixed in SVN.

Changed October 03, 2006 09:03PM UTC by brandon.aaro comment:2

resolution: fixed
status: closedreopened

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:

and the broken version:

Changed October 06, 2006 02:05PM UTC by joern comment:3

resolution: → fixed
status: reopenedclosed


Changed October 26, 2006 02:25PM UTC by anonymous comment:4

component: → ajax
priority: → blocker
resolution: → invalid
status: reopenedclosed
type: → bug


Changed November 05, 2006 11:07AM UTC by Roy comment:5

cc: brandon.aaron@gmail.comRoy
component: ajax1
keywords: ""Roy
milestone: → 1
priority: blocker1
summary: [PATCH] $().hover error in firefoxRoy
type: bug1
version: → 1

Changed November 18, 2006 01:10AM UTC by john comment:6

cc: Roy
component: → event
keywords: Roy
priority: → major
resolution: → fixed
status: reopenedclosed
summary: RoyHover Bug
type: → bug