diff options
author | cmcnulty <cmcnulty@kznf.com> | 2012-04-05 12:12:38 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-04-05 12:26:20 -0400 |
commit | 4cd57d727a075617c8db30dcf69542f66add63fe (patch) | |
tree | 8f4d286ea2d885282068178ef2e4d3a17f2e5037 /test/unit | |
parent | 36d2d9ae937f626d98319ed850905e8d1cbfd078 (diff) | |
download | jquery-4cd57d727a075617c8db30dcf69542f66add63fe.tar.gz jquery-4cd57d727a075617c8db30dcf69542f66add63fe.zip |
Fix 11528. Exclude link/html5 tags from innerHTML path on oldIE.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/manipulation.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index ff31c4db4..8b891f7b5 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -555,6 +555,19 @@ 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("IE8 serialization bug", function () { + expect(2); + var wrapper = jQuery("<div></div>"); + + 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()"); +}); + test("append(xml)", function() { expect( 1 ); |