Aleksander Machniak
2013-01-22 60753b05faa87b6ee6a7b0f22b85cb664478269f
Support autofocus attribute on input elements
1 files modified
3 ■■■■ changed files
program/lib/Roundcube/html.php 3 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/html.php
@@ -287,7 +287,7 @@
            }
            // 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 @@
        'type','name','value','size','tabindex','autocapitalize',
        'autocomplete','checked','onchange','onclick','disabled','readonly',
        'spellcheck','results','maxlength','src','multiple','placeholder',
        'autofocus',
    );
    /**