PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.)