Permalink
Browse files

Attributes: fix tabIndex on <img> in IE11

Fixes gh-2647
Closes gh-2664

(cherry picked from commit c752a50)

Conflicts:
	src/attributes/prop.js
  • Loading branch information...
Queeniebee authored and gibson042 committed Oct 18, 2015
1 parent 24ab836 commit cf4092eeea01cd7bc87f1e99e79c3bb2bfcd7d8a
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/unit/attributes.js
View
@@ -733,6 +733,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 );

0 comments on commit cf4092e

Please sign in to comment.