Skip to content

Commit e18cad6

Browse files
committed
Add test page for crashing IE8 when the testElement in support has a background (will run from the test suite). Supplements #9823.
1 parent 5c4a9cc commit e18cad6

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<style>
6+
body {
7+
background: url('http://s1.postimage.org/2d2r8xih0/body_background.png');
8+
}
9+
</style>
10+
<script src="../../../src/core.js"></script>
11+
<script src="../../../src/deferred.js"></script>
12+
<script src="../../../src/support.js"></script>
13+
</head>
14+
<body>
15+
<script>
16+
window.parent.supportCallback();
17+
</script>
18+
</body>
19+
</html>

test/unit/support.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ supportIFrameTest( "body background is not lost if set prior to loading jQuery (
5353
}
5454
ok( passed, "Same support properties" );
5555
});
56+
57+
supportIFrameTest( "A background on the testElement does not cause IE8 to crash (#9823)", "testElementCrash", function() {
58+
expect(1);
59+
ok( true, "IE8 does not crash" );
60+
});

0 commit comments

Comments
 (0)