Permalink
Browse files

Fix for #1231

  • Loading branch information...
1 parent ea98b16 commit 2e0c87cf234c7d352336435b51f8b3eb012119ca @brandonaaron brandonaaron committed Jun 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
View
2 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 )

0 comments on commit 2e0c87c

Please sign in to comment.