From 70910cd13cdb5d67f1dda2d9ccffbc8e30787352 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 20 Jul 2015 06:26:39 +0200 Subject: [PATCH] Don't ignore autofocus in HTMLForm Autofocus needs to be boolean true to work in OOUI (empty string is interpreted as false), and it's working in div layout, too, so there is no need to transform it into a string. Change-Id: I8cb57e0b701c7bc07e75ae60ecd98911ac37d30f --- includes/htmlform/HTMLFormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 70615d9d98..21526c77a8 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -874,7 +874,7 @@ abstract class HTMLFormField { * @return array Attributes */ public function getAttributes( array $list, array $mappings = null ) { - static $boolAttribs = array( 'disabled', 'required', 'autofocus', 'multiple', 'readonly' ); + static $boolAttribs = array( 'disabled', 'required', 'multiple', 'readonly' ); $ret = array(); foreach ( $list as $key ) { -- 2.20.1