Skip Menu |

This queue is for tickets about the WWW-Mechanize-FireFox CPAN distribution.

Report information
The Basics
Id: 70730
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-FireFox

People
Owner: Nobody in particular
Requestors: pmcdermott98 [...] gsb.columbia.edu
Cc:
AdminCc:

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



Subject: set_visible() should ignore input fields with type="image"
Date: Mon, 05 Sep 2011 10:16:07 +0100
To: bug-WWW-Mechanize-Firefox [...] rt.cpan.org
From: Paul McDermott <pmcdermott98 [...] gsb.columbia.edu>
HTML <input> fields with type="image" are equivalent to submit buttons, but using an image for the button. set_visible() should ignore these fields in the same way that it ignores <input> fields with type="submit". The following patch worked for me: 2951c2951 < my @visible_fields = $self->xpath(q{//input[not(@type) or (@type != "hidden" and @type!= "button" and @type!="submit")]}, --- Show quoted text
> my @visible_fields = $self->xpath(q{//input[not(@type) or (@type
!= "hidden" and @type!= "button" and @type!="submit" and @type!="image")]},
Hello, somehow this bug escaped my notice. Thanks for reporting it! I've just released 0.66, which should make ->set_visible() respect/ignore type="image" inputs. -max