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

People
Owner: Nobody in particular
Requestors: scoles [...] pythian.com
Cc:
AdminCc:

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



Subject: popup_menu
I have been using CGI for a while now but I just noticed that when I use popup_menu with the -default=> option I get this rendered in HTML <option selected="selected" value="4">The Pythian Group</option> where the proper html is <option selected value="4">The Pythian Group</option> doesn't seem to cause too many problems except when I try to use JS to acceess the selectedIndex of the object I can't until it is changed by user action.
From: scoles [...] pythian.com
After a little more digging into the CGI.pm code I discovered that when the value # Set this to 1 to generate XTML-compatible output $XHTML = 1; on line 45 is set to 1 the selected="selected" value. If I set $XHTML = 0; I get the corret HTML. So I guess this might not be a bug after all. [guest - Thu Oct 6 08:32:38 2005]: Show quoted text
> I have been using CGI for a while now but I just noticed that when I > use > > popup_menu with the -default=> option I get this rendered in HTML > > <option selected="selected" value="4">The Pythian Group</option> > > where the proper html is > > <option selected value="4">The Pythian Group</option> > > doesn't seem to cause too many problems except when I try to use JS to > acceess the selectedIndex of the object I can't until it is changed by > user action. >
I'm marking this old bug as rejected, since the reporter decided it wasn't a bug himself.