Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2012 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2350137 to your computer and use it in GitHub Desktop.
Save anonymous/2350137 to your computer and use it in GitHub Desktop.
$ diff -u jquery-1.7.2.js jquery.min.js
--- jquery-1.7.2.js 2012-03-21 20:46:56.000000000 +0100
+++ jquery.min.js 2012-04-10 11:55:10.862750863 +0200
@@ -4782,7 +4782,7 @@
},
TAG: function( elem, match ) {
- return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+ return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && typeof elem.nodeName == "string" && elem.nodeName.toLowerCase() === match;
},
CLASS: function( elem, match ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment