Date: | Mon, 1 Nov 2004 15:51:27 +1100 |
To: | bug-WWW-Mechanize [...] rt.cpan.org |
From: | John Horner <bounce [...] johnhorner.nu> |
Subject: | select() method bug |
I was working with WWW::Mechanize and came up with an error where it
couldn't use select(). The form code looked like this:
<select name="filter1" class="mttextinput">
<option value="" selected></option>
<option value="Login Name">Login Name</option>
<option value="Subject">Subject</option>
<option value="Post">Post</option>
</select>
and select() would always fail on that form.
I used the update_html() function to remove that first OPTION tag and
after that it worked.
What should I do now?
I haven't tested whether it's empty values in OPTION tags or the
combination of that and the SELECTED attribute.
------------------------------------------------------------
"Have You Validated Your Code?"
John Horner (+612 / 02) 9333 2110
Senior Developer, ABC Online http://www.abc.net.au/
------------------------------------------------------------