Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't correct event target from text nodes to parent node for DOM mut…
…ation events.
  • Loading branch information
hesselink committed Jul 12, 2010
1 parent 6a0942c commit 6284b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -448,7 +448,7 @@ jQuery.event = {
}

// check if target is a textnode (safari)
if ( event.target.nodeType === 3 ) {
if ( event.target.nodeType === 3 && event.type.slice(0,3) !== "DOM" ) { // DOM mutation events really have text nodes as targets
event.target = event.target.parentNode;
}

Expand Down

0 comments on commit 6284b37

Please sign in to comment.