aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoelle Fleurantin <joasqueeniebee@gmail.com>2015-10-18 16:20:25 -0400
committerRichard Gibson <richard.gibson@gmail.com>2015-10-25 15:15:55 -0400
commitcf4092eeea01cd7bc87f1e99e79c3bb2bfcd7d8a (patch)
tree9679ad7a79e9cee936a4a647977605637d8fdcbc
parent24ab83659e3565642aac0f487ef555112601ed2b (diff)
downloadjquery-cf4092eeea01cd7bc87f1e99e79c3bb2bfcd7d8a.tar.gz
jquery-cf4092eeea01cd7bc87f1e99e79c3bb2bfcd7d8a.zip
Attributes: fix tabIndex on <img> in IE11
Fixes gh-2647 Closes gh-2664 (cherry picked from commit c752a5030bc00eb5b45dea9c28963f824a5c4f44) Conflicts: src/attributes/prop.js
-rw-r--r--test/unit/attributes.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index ba9d551aa..edd900161 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -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 );