Subject: | [PATCH] Radiobuttons don't get their own ID attribute |
Date: | Tue, 12 Jun 2012 09:49:06 -0600 |
To: | bug-HTML-Form [...] rt.cpan.org |
From: | Erik Falor <ewfalor [...] gmail.com> |
First of all, I want to thank you for your wonderful work on the many
HTML and HTTP classes you've written. I've used them and enjoyed them
for many years.
I only recently ran into a limitation with the representation of
radiobutton inputs in HTML::Form. I needed to refer to a specific
radio button whose 'value' was an unwieldy blob of HTML. I had been
looking up the radiobuttons on this particular web page by their
value, but that scheme was rendered impossible by this particular
radiobutton group.
When I inspected the data gathered by the HTML::Form object I noticed
that the radiobutton group as a whole took on the id attribute of the
very first radiobutton encountered. Since each radiobutton can have
its own id attribute, I changed HTML::Form::ListInput::new()
accordingly.
You will find the patch with these changes in the attachment.
Thank you,
Erik
--
Erik Falor http://unnovative.net
Registered Linux User #445632 http://linuxcounter.net
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.