#708 ✓resolved
Walter Smith

mouseenter/mouseleave events have no relatedTarget in IE

Reported by Walter Smith | June 11th, 2009 @ 12:31 AM | in 1.7

Using 1.6.1rc2 on IE8.

The event object passed to a mouseenter/mouseleave handler does not have a relatedTarget property set when running in IE.

I seem to have fixed it with this simple patch to _relatedTarget:

  •   case 'mouseover': element = event.fromElement; break;
  •   case 'mouseout': element = event.toElement;   break;
  •   case 'mouseover': case 'mouseenter': element = event.fromElement; break;
  •   case 'mouseout': case 'mouseleave': element = event.toElement;   break;

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins


Referenced by