Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 40842
Status: rejected
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: richardgcook [...] gmail.com
Cc:
AdminCc:

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



Subject: no name attribute defined
When a form input does not have the name attribute an error is thrown. This issue came up while doing automated web testing and a select field was used with out a name attribute. The input was then parsed and injected into a hidden value with a name attribute. Because the select nested in the form did not contain a name attribute, the parsing of the form broke.
Can't reproduce. Please demonstrate the failure with some real code showing how it fails. Parsing in this example seems sane enough with current version: -------------------------------- use strict; use HTML::Form; my $f = HTML::Form->parse(<<'EOT', 'http://example.com'); <form> <input type="text" value="foo"> <input name="x" value="bar"> <select> <option>a <option>b </select> </form> EOT $f->dump;