Permalink
Browse files

Support autofocus attribute on input elements

  • Loading branch information...
alecpl committed Jan 22, 2013
1 parent 87a9680 commit 60753b05faa87b6ee6a7b0f22b85cb664478269f
Showing with 2 additions and 1 deletion.
  1. +2 −1 program/lib/Roundcube/html.php
@@ -287,7 +287,7 @@ public static function attrib_string($attrib = array(), $allowed = null)
}
// attributes with no value
- if (in_array($key, array('checked', 'multiple', 'disabled', 'selected'))) {
+ if (in_array($key, array('checked', 'multiple', 'disabled', 'selected', 'autofocus'))) {
if ($value) {
$attrib_arr[] = $key . '="' . $key . '"';
}
@@ -350,6 +350,7 @@ class html_inputfield extends html
'type','name','value','size','tabindex','autocapitalize',
'autocomplete','checked','onchange','onclick','disabled','readonly',
'spellcheck','results','maxlength','src','multiple','placeholder',
+ 'autofocus',
);
/**

0 comments on commit 60753b0

Please sign in to comment.