This commit is contained in:
Brandon Aaron 2007-06-29 22:05:25 +00:00
parent ea98b16438
commit 2e0c87cf23

View File

@ -1539,7 +1539,7 @@ jQuery.extend({
arg = jQuery.makeArray( div.childNodes ); 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; return;
if ( arg[0] == undefined || jQuery.nodeName(arg, "form") || arg.options ) if ( arg[0] == undefined || jQuery.nodeName(arg, "form") || arg.options )