mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Attributes: fix tabIndex on <img> in IE11
Fixes gh-2647
Closes gh-2664
(cherry picked from commit c752a5030b
)
Conflicts:
src/attributes/prop.js
This commit is contained in:
parent
24ab83659e
commit
cf4092eeea
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user