From e0c6e4ef98302345cc17131675e2c1f9f17b62f1 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 15 Sep 2007 03:44:44 +0000 Subject: [PATCH] Added fix for bug #1567 - uppercase nodeName test in .add(). --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index d059564f..1236f1c6 100644 --- a/src/core.js +++ b/src/core.js @@ -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] ) ); },