Bug Tracker

Modify

Ticket #222 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

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:1 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN.

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

comment:5 Changed 7 years ago by Roy

  • Cc Roy added; brandon.aaron@… removed
  • Component changed from ajax to 1
  • Summary changed from [PATCH] $().hover error in firefox to Roy
  • Priority changed from blocker to 1
  • Version set to 1
  • Milestone set to 1
  • Keywords Roy added; "" removed
  • Type changed from bug to 1

comment:6 Changed 7 years ago by john

  • Status changed from reopened to closed
  • Cc Roy removed
  • Type set to bug
  • Component set to event
  • Summary changed from Roy to Hover Bug
  • Priority set to major
  • Keywords Roy removed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.