From: Timo Tijhof Date: Tue, 20 Jan 2015 22:24:33 +0000 (-0800) Subject: UserLogin: Don't rely on jQuery prop('tabindex') to map to tabIndex X-Git-Tag: 1.31.0-rc.0~12644 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=d61ccd0183e24453f44ad9e540b16c7b367d7419;p=lhc%2Fweb%2Fwiklou.git UserLogin: Don't rely on jQuery prop('tabindex') to map to tabIndex 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 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.userlogin.common.js b/resources/src/mediawiki.special/mediawiki.special.userlogin.common.js index 247f814133..f5289deea0 100644 --- a/resources/src/mediawiki.special/mediawiki.special.userlogin.common.js +++ b/resources/src/mediawiki.special/mediawiki.special.userlogin.common.js @@ -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 ) {