Bug Tracker

Opened 14 years ago

Closed 13 years ago

#222 closed bug (fixed)

Hover Bug

Reported by: brandon.aaron@… 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 14 years ago by joern

Resolution: fixed
Status: newclosed

Fixed in SVN.

comment:2 Changed 14 years ago by brandon.aaro

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: http://brandonaaron.net/jquery/hoverbug/hover.patched.html and the broken version: http://brandonaaron.net/jquery/hoverbug/hover.html

comment:3 Changed 13 years ago by joern

Resolution: fixed
Status: reopenedclosed

Fixed.

comment:4 Changed 13 years ago by anonymous

Component: ajax
Priority: blocker
Resolution: invalid
Status: reopenedclosed
Type: bug

SPAMPOLICE

comment:5 Changed 13 years ago by Roy

Cc: Roy added; brandon.aaron@… removed
Component: ajax1
Keywords: Roy added; "" removed
Milestone: 1
Priority: blocker1
Summary: [PATCH] $().hover error in firefoxRoy
Type: bug1
Version: 1

comment:6 Changed 13 years ago by john

Cc: Roy removed
Component: event
Keywords: Roy removed
Priority: major
Resolution: fixed
Status: reopenedclosed
Summary: RoyHover Bug
Type: bug
Note: See TracTickets for help on using tickets.