Req #8425 [NEW]: Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption()
| From: | alessio dot bazzica at gmail dot com | Date: | Sun, 13 Aug 2006 17:02:58 +0000 |
| Subject: | Req #8425 [NEW]: Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption() | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8289@lists.php.net to get a copy of this message | ||
From: alessio dot bazzica at gmail dot com
Operating system:
Package version:
PHP version: 5.0.4
Package: Documentation
Bug Type: Feature/Change Request
Bug description: Cannot use 'disabled' as attribute
HTML_QuickForm_select::addOptionaddOption()
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>
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=8425&edit=1
--