Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up$().prop("tabIndex") returns wrong value (JSBin example included) #2647
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report! jQuery Compat 3.0 is the continuation of the jQuery 1.x line so nothing changed here; jQuery 3.0 is a continuation of the jQuery 2.x line and the code there is the same as in 2.x. It does seem the We'll most likely not fix it in jQuery 2.1.x (there are many bug fixes people would like to have fixed there, we can't backport all of them) but it'd be good to fix it for 3.0.0. |
mgol
added this to the 3.0.0 milestone
Oct 13, 2015
mgol
added
the
Attributes
label
Oct 13, 2015
This comment has been minimized.
This comment has been minimized.
|
@aschmalzhaf Would you like to take a shot at a PR? jQuery Compat 3.0 alpha code lies on the |
Queeniebee
added a commit
to Queeniebee/jquery
that referenced
this issue
Oct 18, 2015
Queeniebee
referenced this issue
Oct 18, 2015
Closed
Attributes: fix tabIndex on <img> in IE11 #2664
mgol
closed this
in
c752a50
Oct 18, 2015
mgol
added
the
2.x-only
label
Oct 18, 2015
gibson042
added a commit
that referenced
this issue
Oct 25, 2015
This comment has been minimized.
This comment has been minimized.
|
@mzgol why this was ported to |
markelog
removed
the
2.x-only
label
Dec 22, 2015
This comment has been minimized.
This comment has been minimized.
|
Label removed |
dmethvin
modified the milestones:
1.12/2.2,
3.0.0
Jan 8, 2016
This comment has been minimized.
This comment has been minimized.
|
Only a test was added, nothing needed to be fixed in |
aschmalzhaf commentedOct 13, 2015
Hello,
$(...).prop("tabIndex") behaves differently in JQuery 1.11.3 and 2.1.4 when Internet Explorer 11 is used.
) that doesn't have an attribute "tabindex" explicitly given.
This is true at least for images (dom nodes of type
Please see also the playground example here:
http://jsbin.com/herehipoke/1/edit?html,output
When changing the URL of the loaded jQuery version, you can see that the tabIndex is different ("0" vs. "-1").
This is because of changes in attributes/porp.js file...
The propHook for tabIndex is different:
The current code line (master and 2.1 stable) show the code of propHooks - tabIndex as follows:
1.11.1 looks like that:
I've seen that jQuery Compat 3.0 Alpha uses the 1.11 logic again. Maybe it would make sense to move that kind of logic also into jQuery 2/3 as Internet Explorers are still supprted (at least the newer ones starting from 9 upwards).
Best regards,
Alexander