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 #8425

Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption()

Details

Request #8425Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption()
Submitted2006-08-13 17:02 UTC
Fromalessio dot bazzica at gmail dot com
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.4
Roadmaps(Not assigned)

Comments

[2006-08-13 17:02 UTC] alessio dot bazzica at gmail dot com

Description:
------------
$objToRet->addOption('label', 'value', 'disabled'); is
rendered as <option disabled="disabled" value="value">label</
option> so an option in a select cannot be disabled

Test script:
---------------
$objToRet->addOption('label', 'value', 'disabled');
// ^

Expected result:
----------------
<option disabled value="value">label</option>

Actual result:
--------------
<option disabled="disabled" value="value">label</option>

[2006-08-13 20:02 UTC] alessio dot bazzica at gmail dot com

Ok, sorry. The problem it's only with Safari v2.0.4 OS X
browser... I didn't try to check with other browsers. Thank
you.