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