]> source.dussan.org Git - jquery.git/commitdiff
Failing test (http://gyazo.com/0a7285e1d10039bc8ec8bc340fac15a9.png)
authorRick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
Fri, 23 Mar 2012 15:31:05 +0000 (11:31 -0400)
committerRick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
Fri, 23 Mar 2012 15:31:05 +0000 (11:31 -0400)
Signed-off-by: Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
test/unit/manipulation.js

index 18e1b8d67ee185e17b6bdd8c400266bb76b59fff..b07423a3f503fbee8e11f41417d6492b82fec28a 100644 (file)
@@ -551,6 +551,15 @@ test("html(String) with HTML5 (Bug #6485)", function() {
        equal( jQuery("#qunit-fixture").children().children().children().length, 1, "Make sure nested HTML5 elements can hold children." );
 });
 
+test("html() object element #10324", function() {
+       expect( 1 );
+
+       var object = jQuery("#object2"),
+                       clone = object.clone();
+
+       equal( clone.html(), object.html(), "html() returns correct innerhtml of cloned object elements" );
+});
+
 test("append(xml)", function() {
        expect( 1 );
 
@@ -1751,4 +1760,4 @@ test("Guard against exceptions when clearing safeChildNodes", function() {
        } catch(e) {}
 
        ok( div && div.jquery, "Created nodes safely, guarded against exceptions on safeChildNodes[ -1 ]" );
-});
\ No newline at end of file
+});