]> source.dussan.org Git - jquery.git/commitdiff
Adds notes re: crash status of fix conditions
authorRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 14:52:29 +0000 (10:52 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Thu, 22 Sep 2011 14:52:29 +0000 (10:52 -0400)
src/event.js

index 0986b929486228b184ff2183005d76fe689679ee..86306d75f79fab8fdc781f80386437af2f06e1cc 100644 (file)
@@ -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;
                }