aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-02-25 19:12:07 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-02-25 19:12:07 +0000
commitb15ae79a389299cac19f59ed14efafc3e9d8ef0d (patch)
treedf5f7773e72c672acfb348c3a532b0bf884015b2
parentb2c2ab2bb7fc43e680214a3627181a0c2226c6f9 (diff)
downloadjquery-b15ae79a389299cac19f59ed14efafc3e9d8ef0d.tar.gz
jquery-b15ae79a389299cac19f59ed14efafc3e9d8ef0d.zip
Fix for #910
-rw-r--r--ChangeLog.txt1
-rw-r--r--src/jquery/jquery.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 065137c59..df4848683 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -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.
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index eecc5a744..1c701933a 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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 );