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")]},