]> source.dussan.org Git - jquery.git/commitdiff
Added fix for bug #1567 - uppercase nodeName test in .add().
authorJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:44:44 +0000 (03:44 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 15 Sep 2007 03:44:44 +0000 (03:44 +0000)
src/core.js

index d059564fe02aa19cf2938319c7ba8bda931307f8..1236f1c65771141a53baeb86acf75e016f796472 100644 (file)
@@ -282,7 +282,7 @@ jQuery.fn = jQuery.prototype = {
                        this.get(),
                        t.constructor == String ?
                                jQuery(t).get() :
-                               t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ?
+                               t.length != undefined && (!t.nodeName || jQuery.nodeName(t, "form")) ?
                                        t : [t] )
                );
        },