Skip Menu |

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

Report information
The Basics
Id: 3913
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: talby [...] trap.mtview.ca.us
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 5.69
Fixed in: 5.70



Subject: HTML::Form and unknown input types.
Perl version: v5.8.0 built for i386-linux-thread-multi libwww-perl version: 5.69 OS: Linux 2.4.22 on Debian (testing dist) In HTML::Form's push_input function, if an input field's type is not known, the type defaults to HTML::Form::IgnoreInput and warns if $^W is true. This behavior seems fine when the module user is constructing objects directly, but is difficult to accommodate when the HTML::Forms are being generated from parsed HTML. When the form is generated from parsed HTML it would be much easier if there was a class such as an "HTML::Form::UnknownInput" that did not silently ignore ->value($new_value) method calls. <form action="login.cgi" method="POST"> USER:<input type="textfield" name="user"><br> PASS:<input type="password" name="pass"><br> <input type="submit" value="login" name="l"> </form> In all the web browsers I can find the "textfield" type and in fact any unknown type is treated as type "text", so possibly simply defaulting to HTML::Form::TextInput would be more convenient for most users.