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: 88451
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: john.huijsing [...] gmail.com
Cc:
AdminCc:

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



Subject: Patch for CGI.PM to allow passing a hash for labelattributes
Date: Fri, 6 Sep 2013 08:28:56 +1000
To: bug-CGI.pm [...] rt.cpan.org
From: John Huijsing <john.huijsing [...] gmail.com>
Download (untitled) / with headers
text/plain 629b
Hi A very simple patch I wanted the ability to have a different background colors for individual check-boxes in a group modify around line 2503 from if ($XHTML) { push @elements, CGI::label($labelattributes, qq(<input type="$box_type" name="$name" value="$_" $checkit$other$tab$attribs$disable/>$label)).${break}; } else { to if ($XHTML) { my $labelattr = ref $labelattributes eq 'HASH' ? $labelattributes->{$_} : $labelattributes ; push @elements, CGI::label($labelattr, Thanks for the code :) John ( a part time perl hacker)
Download (untitled) / with headers
text/plain 241b
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/122 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Download (untitled) / with headers
text/plain 198b
Rejecting. I'm not accepting any feature requests, patches, or updates to the HTML generating functions of CGI.pm unless they are of a critical nature (i.e. fixing fundamentally broken HTML output).


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.