Skip to content

Commit afeaf56

Browse files
committed
Core tests: Explicitly focus the body during delayed .focus() test to avoid an issue in IE 8.
1 parent 382a775 commit afeaf56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/core/core.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ asyncTest( "focus - original functionality", function() {
1616

1717
asyncTest( "focus", function() {
1818
expect( 2 );
19+
20+
// support: IE 8
21+
// IE sometimes gets confused about what's focused if we don't explicitly
22+
// focus a different element first
23+
$( "body" ).focus();
24+
1925
$( "#inputTabindex0" )
2026
.one( "focus", function() {
2127
ok( true, "event triggered" );

0 commit comments

Comments
 (0)