Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
4aad9299
Commit
4aad9299
authored
Nov 16, 2008
by
Nigel McNie
Browse files
Allow elements to accept the 'autocomplete' attribute.
parent
03a3b6ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform.php
View file @
4aad9299
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment