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>
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)
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.
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).