Skip to content

Commit cf4092e

Browse files
Queeniebeegibson042
authored andcommitted
Attributes: fix tabIndex on <img> in IE11
Fixes gh-2647 Closes gh-2664 (cherry picked from commit c752a50) Conflicts: src/attributes/prop.js
1 parent 24ab836 commit cf4092e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/attributes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,13 @@ QUnit.test( "prop('tabindex')", function( assert ) {
733733
assert.equal( jQuery( "#linkWithNoHrefWithNegativeTabIndex" ).prop( "tabindex" ), -1, "anchor without href, no tabindex set" );
734734
} );
735735

736+
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
737+
assert.expect( 1 );
738+
var image = jQuery("<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' />")
739+
.appendTo("#qunit-fixture");
740+
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
741+
} );
742+
736743
QUnit.test( "prop('tabindex', value)", function( assert ) {
737744
assert.expect( 10 );
738745

0 commit comments

Comments
 (0)