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
This commit is contained in:
Florian 2015-07-20 06:26:39 +02:00
parent c226b13545
commit 70910cd13c

View file

@ -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 ) {