NEW 20938
JavaScript cannot "delete" event handlers
https://bugs.webkit.org/show_bug.cgi?id=20938
Summary JavaScript cannot "delete" event handlers
Berend-Jan Wever
Reported 2008-09-19 07:38:57 PDT
This simple script explains the problem: <BODY onload="delete onload;alert(onload);"> The alert shows the event handler survives the "delete" operation. Also setting the event handler to "undefined" actually sets it to "null".
Attachments
Oliver Hunt
Comment 1 2008-09-19 16:18:15 PDT
I'm not sure why setting the handlers to undefined fails, but it is correct behaviour for it to not be possible to delete the onhandlers.
Note You need to log in before you can comment on or make changes to this bug.