From: Rick Waldron Date: Thu, 22 Sep 2011 14:52:29 +0000 (-0400) Subject: Adds notes re: crash status of fix conditions X-Git-Tag: 1.7b1~9^2~2^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c903b805c922355409b4d593fbc3206395d008d;p=jquery.git Adds notes re: crash status of fix conditions --- 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; }