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:
parent
c226b13545
commit
70910cd13c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue