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

People
Owner: MARKSTOS [...] cpan.org
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 337b
This code fragment: print popup_menu(-name => 'n', -values => [ qw(a b c) ], 'x'); generates the HTML fragment <select name="n" x> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select> which is ill-formed. popup_menu() should warn about the extra argument rather than generating bad HTML.
Download (untitled) / with headers
text/plain 671b
On Thu Apr 17 11:26:30 2008, EDAVIS wrote: Show quoted text
> This code fragment: > > print popup_menu(-name => 'n', -values => [ qw(a b c) ], 'x'); > > generates the HTML fragment > > <select name="n" x> > <option value="a">a</option> > <option value="b">b</option> > <option value="c">c</option> > </select> > > which is ill-formed. popup_menu() should warn about the extra argument > rather than generating bad HTML.
I believe this part of the documented behavior of the CGI.pm HTML shortcuts-- they turn extra arguments into additional attribute name/value pairs. This is documented here: http://search.cpan.org/~lds/CGI.pm-3.43/CGI.pm#PROVIDING_ARGUMENTS_TO_HTML_SHORTCUTS


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.