From 60753b05faa87b6ee6a7b0f22b85cb664478269f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 22 Jan 2013 12:50:10 +0100 Subject: [PATCH] Support autofocus attribute on input elements --- program/lib/Roundcube/html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', ); /**