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: 16295
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: roel-perl [...] st2x.net
Cc:
AdminCc:

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



Subject: Invalid HTML resulting from $cgi->scrolling_list(-default => ... )
Download (untitled) / with headers
text/plain 706b
Distribution name/version: CGI-2.13 Perl version: all; OS: all. CGI.pm version 3.12 (released 04 Dec 2005) has introduced a bug in the scrolling_list routine. When setting the -default option, a missing space in the resulting HTML makes it invalid. Sample code: #!/usr/bin/perl # $Id$ use strict; use warnings; use CGI; my $cgi = new CGI; print $cgi->scrolling_list( -values => [qw/a b c/], -default => 'b' ); __END__ results in: <select name="" size="3"> <option value="a">a</option> <optionselected="selected" value="b">b</option> <option value="c">c</option> </select> where a space should be inserted between "option" and "selected" in "optionselected" (invalid). Patch attached.
Download p
application/octet-stream 510b

Message body not shown because it is not plain text.

Sorry about that. This bug is fixed in version 3.14.


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.