]> source.dussan.org Git - jquery.git/commitdiff
Fix for #1231
authorBrandon Aaron <brandon.aaron@gmail.com>
Fri, 29 Jun 2007 22:05:25 +0000 (22:05 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Fri, 29 Jun 2007 22:05:25 +0000 (22:05 +0000)
src/jquery/jquery.js

index e5e494adeda105979b30b30b3025691db303046a..5940df380420cd52443c006f001f1870b0a001fe 100644 (file)
@@ -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 )