From 2c903b805c922355409b4d593fbc3206395d008d Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 22 Sep 2011 10:52:29 -0400 Subject: [PATCH] Adds notes re: crash status of fix conditions --- src/event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index 0986b9294..86306d75f 100644 --- a/src/event.js +++ b/src/event.js @@ -493,13 +493,14 @@ jQuery.event = { } // Fix target property, if necessary - // Removal of this condition will crash IE6,7,8 + // Removal will crash IE6,7,8 if ( !event.target ) { // Fixes #1925 where srcElement might not be defined either event.target = event.srcElement || document; } // check if target is a textnode (safari) + // Removal will crash IE6,7,8 if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } -- 2.39.5