Home » HTML » HTML_QuickForm » Bug #8425
Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption()
Details
| Request #8425 | Cannot use 'disabled' as attribute HTML_QuickForm_select::addOptionaddOption() |
|---|---|
| Submitted | 2006-08-13 17:02 UTC |
| From | alessio dot bazzica at gmail dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.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.