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

Checkbox element generates empty label HTML

Details

Submitted2003-10-22 11:48 UTC
Frommikeatwork at ukonline dot co dot uk
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version4.3.3
OSredhat linux
Roadmaps(Not assigned)

Comments

[2003-10-22 11:48 UTC] mikeatwork at ukonline dot co dot uk

Description:
------------
An empty <label> tag pair is generated when the elements label is set to null.

Reproduce code:
---------------
$this->addElement('checkbox', $key, $value, null);

The generated HTML is:
<input name="123" type="checkbox" value="1" id="qf_be76e4" /><label
for="qf_be76e4"></label>

Expected result:
----------------
No <label> html output as part of the elements html.