mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 02:45:08 -05:00
Adds notes re: crash status of fix conditions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user