jQuery: The Write Less, Do More JavaScript Library

Ticket #222 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

Hover Bug

Reported by: brandon.aaron@… Assigned to: anonymous
Type: bug Priority: major
Milestone: Component: event
Version: Keywords:
Cc: Needs:

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

Attachments

Change History

Changed 2 years ago by joern

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN.

Changed 2 years ago by brandon.aaron@…

  • status changed from closed to reopened
  • resolution 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

Changed 2 years ago by joern

  • status changed from reopened to closed
  • resolution set to fixed

Fixed.

Changed 2 years ago by anonymous

  • priority set to blocker
  • status changed from reopened to closed
  • component set to ajax
  • resolution set to invalid
  • type set to bug

SPAMPOLICE

Changed 2 years ago by Roy

  • cc changed from brandon.aaron@gmail.com to Roy
  • 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 changed from "" to Roy
  • type changed from bug to 1

Changed 2 years ago by john

  • status changed from reopened to closed
  • cc deleted
  • type set to bug
  • component set to event
  • summary changed from Roy to Hover Bug
  • priority set to major
  • keywords deleted
  • resolution set to fixed

Changed 2 years ago by http://hometown.aol.de/makehimhard/buy_viagra.html

<a href="http://hometown.aol.de/makehimhard/buy_viagra.html">buy viagra</a> f1ngertest000123

Changed 1 year ago by anonymous

World of Warcraft™ is a registred trademark of Blizzard Entertainment®. This site is in no way associated with or endorsed by Blizzard Entertainment®. Warcraftmovies.com graphics made by Balgosa Windspire(wow gold),(world of warcraft gold) ,(buy wow gold)

Note: See TracTickets for help on using tickets.