Greetings, I'm working on using WWW::Mechanize to step through an application's pages to do some testing. The application utilizes JavaScript to dynamically set some field values, including sometimes setting the <select> fields to values that aren't actually listed as valid <option>s for them. The browser doesn't seem to have any problem with this. I need to duplicate this behavior within my script.
The problem is that when my script attempts to set the value of a <select> field to a value that isn't listed as one of its <option>s, I get this: Illegal value 'newvalue for field 'fieldname' at /usr/lib/perl5/site_perl/5.8/WWW/Mechanize.pm line 1030 It should be easy enough to add functionality to HTML/Form.pm to allow the user to override these value checks, i.e., to allow the user to tell the module, "Set the field to this value even if the HTML says it's not a valid value." I'm happy to add this functionality and submit a patch, but before doing so, I thought I should check in with the list (to which I just subscribed) to find out whether anyone thinks this is a really bad, no-way-we'll-accept-that-patch sort of idea, and if so why, or whether anyone has thoughts on what form the interface to the override functionality should take. Thanks, Jonathan Kamens