UserLogin: Don't rely on jQuery prop('tabindex') to map to tabIndex
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 20 Jan 2015 22:24:33 +0000 (14:24 -0800)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 20 Jan 2015 22:26:06 +0000 (14:26 -0800)
Follows-up I9b03d519af43d.

There is a hardcoded set of exceptions in jQuery core right now
that map these common mistakes for back-compat. But this is
undocumented/unsupported legacy behaviour for a very small subset
of properties.

Change-Id: I9cfef0bc6a088e4c0a632b3673df460d26477c37

resources/src/mediawiki.special/mediawiki.special.userlogin.common.js

index 247f814..f5289de 100644 (file)
@@ -20,7 +20,7 @@
                if ( !$submit.length ) {
                        return;
                }
-               tabIndex = $submit.prop( 'tabindex' ) - 1;
+               tabIndex = $submit.prop( 'tabIndex' ) - 1;
                $captchaStuff = $content.find( '.captcha' );
 
                if ( $captchaStuff.length ) {