This project is archived and is in readonly mode.

#1155 ✓invalid

[Prototype] IE throws js error on unload in Events.element

Reported by skaue | October 2nd, 2008 @ 09:33 AM | in 2.x

This is a bug that survived the patch from that should solve this problem for various other events. I'm tracing this using Visual Studio and line 4503 in prototype.js says:

if (node.nodeType == Node.TEXT_NODE) node = node.parentNode;

nodeType here is undefined and event.type is "unload". Reading furhter up the code it seems is undefined as well. Does the event "unload" even have a target?

This needs further patching it seems.

Please let me know if you need further input/trace/etc...

Comments and changes to this ticket

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket