]> source.dussan.org Git - jquery.git/commitdiff
Amends #10324. Remove object markup fixture; create programmatically
authorRick Waldron <waldron.rick@gmail.com>
Wed, 11 Apr 2012 16:00:42 +0000 (12:00 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 11 Apr 2012 19:40:03 +0000 (15:40 -0400)
test/index.html
test/unit/manipulation.js

index c24b4d2d059ba49bb60d3f79b381072d054d3094..c1320ccad05610ea937cd625b59f6f79e7091504 100644 (file)
                                <param name="p1" value="x1" />
                                <param name="p2" value="x2" />
                        </object>
-                       <object id="object2"><param name="object2test" value="test"></param></object>​
 
                        <span id="台北Táiběi"></span>
                        <span id="台北" lang="中文"></span>
index cf1ecf862d88d60a287faf84b34e6c1aea2b03e5..9209b1dd98d7c698b3a9c46e4dfc4f8c7456a989 100644 (file)
@@ -563,7 +563,7 @@ test("IE8 serialization bug", function () {
 
        wrapper.html("<div></div><article></article>");
        equal( wrapper.children("article").length, 1, "HTML5 elements are insertable with .html()");
-       
+
        wrapper.html("<div></div><link></link>");
        equal( wrapper.children("link").length, 1, "Link elements are insertable with .html()");
 });
@@ -571,7 +571,7 @@ test("IE8 serialization bug", function () {
 test("html() object element #10324", function() {
        expect( 1 );
 
-       var object = jQuery("#object2"),
+       var object = jQuery("<object id='object2'><param name='object2test' value='test'></param></object>​").appendTo("#qunit-fixture"),
                        clone = object.clone();
 
        equal( clone.html(), object.html(), "html() returns correct innerhtml of cloned object elements" );