Skip to content

Commit

Permalink
Use node.nodeName instead of tagName for better consistency/compatibi…
Browse files Browse the repository at this point in the history
…lity, see #28704.

Built from https://develop.svn.wordpress.org/trunk@29332


git-svn-id: http://core.svn.wordpress.org/trunk@29112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed Jul 30, 2014
1 parent 2ca11eb commit 4bff4ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wp-includes/js/media-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -4753,8 +4753,8 @@
var method;

// Don't do anything inside inputs.
if ( 'input' === event.target.tagName.toLowerCase() ) {
return
if ( 'INPUT' === event.target.nodeName ) {
return;
}

// Catch arrow events
Expand Down
Loading

0 comments on commit 4bff4ff

Please sign in to comment.