Commit bf99a766 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Removed "maxlength" from the default list, it's handled just below anyway.

parent 8805e981
...@@ -675,7 +675,7 @@ class Form { ...@@ -675,7 +675,7 @@ class Form {
* @return string The attributes for the element * @return string The attributes for the element
*/ */
public static function element_attributes($element, $exclude=array()) { public static function element_attributes($element, $exclude=array()) {
static $attributes = array('accesskey', 'class', 'dir', 'id', 'lang', 'maxlength', 'name', 'onclick', 'size', 'style', 'tabindex'); static $attributes = array('accesskey', 'class', 'dir', 'id', 'lang', 'name', 'onclick', 'size', 'style', 'tabindex');
$elementattributes = array_diff($attributes, $exclude); $elementattributes = array_diff($attributes, $exclude);
$result = ''; $result = '';
foreach ($elementattributes as $attribute) { foreach ($elementattributes as $attribute) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment