summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-22 12:50:10 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-22 12:50:10 +0100
commit60753b05faa87b6ee6a7b0f22b85cb664478269f (patch)
tree08a0f8c8b3414584ca1711b04a47ddd537b1689c /program
parent87a96809c7a067f8cc140884558898fd92c87032 (diff)
Support autofocus attribute on input elements
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php
index 522a82305..a44f4d518 100644
--- a/program/lib/Roundcube/html.php
+++ b/program/lib/Roundcube/html.php
@@ -287,7 +287,7 @@ class html
}
// 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',
);
/**