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