Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.14

Bug #140 Checkbox element generates empty label HTML
Submitted: 2003-10-22 06:48 UTC Modified: 2003-10-23 10:25 UTC
From: mikeatwork at ukonline dot co dot uk Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: 4.3.3 OS: redhat linux
Roadmaps: (Not assigned)    
Subscription  


 [2003-10-22 06: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.

Comments

 [2003-10-22 08:22 UTC] avb
The same is true for radio elements...
 [2003-10-23 10:25 UTC] avb
Fixed in CVS.