]> source.dussan.org Git - jquery.git/commitdiff
Fix for #910
authorBrandon Aaron <brandon.aaron@gmail.com>
Sun, 25 Feb 2007 19:12:07 +0000 (19:12 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Sun, 25 Feb 2007 19:12:07 +0000 (19:12 +0000)
ChangeLog.txt
src/jquery/jquery.js

index 065137c59d5490f47fac5f6c7e4ee9ea23ca60b7..df48486839ebbb8d8d33471e45587862e350d5e6 100644 (file)
@@ -4,6 +4,7 @@
 
 === 1.1.2 ===
 
+* Fixed DOM Manipulations for form elements.
 * Fixed jQuery.isFunction to return false on nodes.
 * Fixed jQuery.className.has, escaping regex characters in className (for metadata)
 * Fixed an issue in IE where an event on a cloned element is fired during a .clone() inside of an event handler.
index eecc5a7448e92d15eb0ce101ccaaf1eed2ec5c85..1c701933a66719b1db4042c72c2b02b58ed5a638 100644 (file)
@@ -1471,10 +1471,10 @@ jQuery.extend({
                                arg = div.childNodes;
                        }
 
-                       if ( arg.length === 0 )
+                       if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )
                                return;
                        
-                       if ( arg[0] == undefined )
+                       if ( arg[0] == undefined || jQuery.nodeName(arg, "form") )
                                r.push( arg );
                        else
                                r = jQuery.merge( r, arg );