From: Florian Date: Mon, 20 Jul 2015 04:26:39 +0000 (+0200) Subject: Don't ignore autofocus in HTMLForm X-Git-Tag: 1.31.0-rc.0~10708^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=70910cd13cdb5d67f1dda2d9ccffbc8e30787352;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {