From 2e0c87cf234c7d352336435b51f8b3eb012119ca Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Fri, 29 Jun 2007 22:05:25 +0000 Subject: [PATCH] Fix for #1231 --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index e5e494ade..5940df380 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1539,7 +1539,7 @@ jQuery.extend({ arg = jQuery.makeArray( div.childNodes ); } - if ( 0 === arg.length && !jQuery(arg).is("form, select") ) + if ( 0 === arg.length && (!jQuery.nodeName(arg, "form") && !jQuery.nodeName(arg, "select")) ) return; if ( arg[0] == undefined || jQuery.nodeName(arg, "form") || arg.options )