EditPage: Give edit summary field's 'tabindex' as a number
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 5 Jun 2017 22:30:49 +0000 (00:30 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 5 Jun 2017 22:30:49 +0000 (00:30 +0200)
There's a bug in OOjs UI that causes the string value to be ignored
after the input is infused (e.g. by the mediawiki.action.edit script).

Bug: T167070
Change-Id: Ibeefc8327b462552c67459aac2c75cca9b1f4739

includes/EditPage.php

index 20250d5..f79a286 100644 (file)
@@ -3059,7 +3059,7 @@ class EditPage {
                        'id' => 'wpSummary',
                        'name' => 'wpSummary',
                        'maxlength' => '200',
-                       'tabindex' => '1',
+                       'tabindex' => 1,
                        'size' => 60,
                        'spellcheck' => 'true',
                ] + Linker::tooltipAndAccesskeyAttribs( 'summary' );