Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 11789
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Implement <label for="..."> for checkboxes and radiobuttons
Download (untitled) / with headers
text/plain 606b
It would be nice if the checkbox, checkbox_group and radio_group subroutines create a <label> tag for the checkbox/radiobutton label. Latest versions of Mozilla and Opera use this information to make the label clickable to select or deselect the corresponding checkbox/radiobutton, just like it works in normal GUI applications. Here's how the generated HTML could look like: <input id="cb1" type="checkbox"><label for="cb1">The checkbox label</label> Using this feature requires the existance of an id for the checkbox/radiobutton, which could be hard to autogenerate with CGI.pm. Regards, Slaven
Download (untitled) / with headers
text/plain 857b
Thanks for the report. I have confirmed that if XHTML output is requested, then <label> tags are generated with 3.43. I believe this bug report can be considered "resolved". On Mon Mar 07 05:44:53 2005, SREZIC wrote: Show quoted text
> It would be nice if the checkbox, checkbox_group and radio_group
subroutines Show quoted text
> create a <label> tag for the checkbox/radiobutton label. Latest versions > of Mozilla and Opera use this information to make the label clickable > to select or deselect the corresponding checkbox/radiobutton, > just like it works in normal GUI applications. > > Here's how the generated HTML could look like: > > <input id="cb1" type="checkbox"><label for="cb1">The checkbox
label</label> Show quoted text
> > Using this feature requires the existance of an id for the > checkbox/radiobutton, which could be hard to autogenerate with CGI.pm. > > Regards, > Slaven
So it is, it can be considered as done and resolved. Regards, Slaven


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.