Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for #910

  • Loading branch information...
commit b15ae79a389299cac19f59ed14efafc3e9d8ef0d 1 parent b2c2ab2
Brandon Aaron brandonaaron authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  ChangeLog.txt
  2. +2 −2 src/jquery/jquery.js
1  ChangeLog.txt
View
@@ -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.
4 src/jquery/jquery.js
View
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.