]> source.dussan.org Git - jquery.git/commitdiff
fix failure from bad markup leaving an element behind. Closes gh-946
authorRichard Gibson <richard.gibson@gmail.com>
Sat, 6 Oct 2012 00:31:43 +0000 (20:31 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Sat, 6 Oct 2012 00:31:43 +0000 (20:31 -0400)
test/unit/css.js

index 25f6b981534fadd6ca6565a4ac24947a5b4a38fa..a54b4f492334d4f978a1b65a16f17ebf9aee9b1a 100644 (file)
@@ -564,7 +564,7 @@ test("show() resolves correct default display #10227", function() {
        expect(2);
 
        jQuery("html").append(
-               "<p id='ddisplay'>a<style>body{display:none}</style><p>"
+               "<p id='ddisplay'>a<style>body{display:none}</style></p>"
        );
 
        equal( jQuery("body").css("display"), "none", "Initial display: none" );