PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #8763

Static elements does not have attributes

Details

Request #8763Static elements does not have attributes
Submitted2006-09-22 07:53 UTC
Frommichael at eurofeeds dot com
StatusBogus
PackageHTML_QuickForm
PHP Version5.1.2
OSFedora Core 5
Roadmaps(Not assigned)

Comments

[2006-09-22 07:53 UTC] michael at eurofeeds dot com

Description:
------------
There's no attributes parameter for element type 'static', and $form->updateElementAttr() does work on this type of element either.

Test script:
---------------
$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.");

Expected result:
----------------
For example:

$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.", array( 'style' => 'color: red');

Actual result:
--------------
To get around it I used:

$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.");

(Unless there's another method that I missed.)