Attributes: fix tabIndex on <img> in IE11

Fixes gh-2647
Closes gh-2664
This commit is contained in:
Joelle Fleurantin
2015-10-18 16:20:25 -04:00
committed by Michał Gołębiowski
parent 3689963909
commit c752a5030b
2 changed files with 22 additions and 5 deletions

View File

@@ -735,6 +735,13 @@ QUnit.test( "prop('tabindex')", function( assert ) {
assert.equal( jQuery( "#linkWithNoHrefWithNegativeTabIndex" ).prop( "tabindex" ), -1, "anchor without href, no tabindex set" );
} );
QUnit.test( "image.prop( 'tabIndex' )", function( assert ) {
assert.expect( 1 );
var image = jQuery("<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' />")
.appendTo("#qunit-fixture");
assert.equal( image.prop("tabIndex" ), -1, "tabIndex on image" );
} );
QUnit.test( "prop('tabindex', value)", function( assert ) {
assert.expect( 10 );