aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-01 21:26:47 -0500
committerjeresig <jeresig@gmail.com>2010-02-01 21:26:47 -0500
commitf95147f465932cb91e1a6aace50c556820ca4074 (patch)
treeae7acebf9e5b27c54b15c33a1afe862e16285f56 /test/unit/manipulation.js
parentf9417b9da980f4fa79d03ba691d9f3442c5ab2f2 (diff)
downloadjquery-f95147f465932cb91e1a6aace50c556820ca4074.tar.gz
jquery-f95147f465932cb91e1a6aace50c556820ca4074.zip
Fix for problem in IE 8 where deserialized (then reserialized) form markup was getting malformed. Thanks IE. Fixes #5998.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 168c17c94..f921ea190 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -757,7 +757,7 @@ test("replaceAll(String|Element|Array&lt;Element&gt;|jQuery)", function() {
});
test("clone()", function() {
- expect(30);
+ expect(31);
equals( 'This is a normal link: Yahoo', jQuery('#en').text(), 'Assert text for #en' );
var clone = jQuery('#yahoo').clone();
equals( 'Try them out:Yahoo', jQuery('#first').append(clone).text(), 'Check for clone' );
@@ -807,6 +807,14 @@ test("clone()", function() {
div = div.clone(true);
equals( div.data("a"), true, "Data cloned." );
equals( div.data("b"), true, "Data cloned." );
+
+ var form = document.createElement("form");
+ form.action = "/test/";
+ var div = document.createElement("div");
+ div.appendChild( document.createTextNode("test") );
+ form.appendChild( div );
+
+ equals( jQuery(form).clone().children().length, 1, "Make sure we just get the form back." );
});
if (!isLocal) {