Commit 4aad9299 authored by Nigel McNie's avatar Nigel McNie
Browse files

Allow elements to accept the 'autocomplete' attribute.

parent 03a3b6ed
......@@ -982,7 +982,7 @@ EOF;
* @return string The attributes for the element
public function element_attributes($element, $exclude=array()) {/*{{{*/
static $attributes = array('accesskey', 'class', 'dir', 'id', 'lang', 'name', 'onclick', 'size', 'style', 'tabindex');
static $attributes = array('accesskey', 'autocomplete', 'class', 'dir', 'id', 'lang', 'name', 'onclick', 'size', 'style', 'tabindex');
$elementattributes = array_diff($attributes, $exclude);
$result = '';
foreach ($elementattributes as $attribute) {
Supports Markdown
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