This commit is contained in:
Brandon Aaron 2007-02-25 19:12:07 +00:00
parent b2c2ab2bb7
commit b15ae79a38
2 changed files with 3 additions and 2 deletions

View 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.

View 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 );