|
50 | 50 | */ |
51 | 51 |
|
52 | 52 | $attributes = [ |
53 | | - !empty($size) ? ' size="' . $size . '"' : '', |
54 | | - !empty($description) ? ' aria-describedby="' . ($id ?: $name) . '-desc"' : '', |
55 | | - $disabled ? ' disabled' : '', |
56 | | - $readonly ? ' readonly' : '', |
57 | | - strlen($hint) ? ' placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', |
| 53 | + !empty($size) ? 'size="' . $size . '"' : '', |
| 54 | + !empty($description) ? 'aria-describedby="' . ($id ?: $name) . '-desc"' : '', |
| 55 | + $disabled ? 'disabled' : '', |
| 56 | + $readonly ? 'readonly' : '', |
| 57 | + strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', |
58 | 58 | !empty($autocomplete) ? 'autocomplete="' . $autocomplete . '"' : '', |
59 | | - $autofocus ? ' autofocus' : '', |
60 | | - $spellcheck ? '' : ' spellcheck="false"', |
61 | | - $onchange ? ' onchange="' . $onchange . '"' : '', |
| 59 | + $autofocus ? 'autofocus' : '', |
| 60 | + $spellcheck ? '' : 'spellcheck="false"', |
| 61 | + $onchange ? 'onchange="' . $onchange . '"' : '', |
62 | 62 | !empty($maxLength) ? $maxLength : '', |
63 | | - $required ? ' required' : '', |
| 63 | + $required ? 'required' : '', |
64 | 64 | $dataAttribute, |
65 | 65 | ]; |
66 | 66 |
|
|
0 commit comments