Mozilla::Mechanize::Image - Mimic WWW::Mechanize::Image
sorry, read the code for now
The Mozilla::Mechanize::Image object is a thin wrapper around an image element.
Mozilla::Mechanize::Image
Initialize a new object. $image_node is a Mozilla::DOM::HTMLElement (or a node that can be QueryInterfaced to one); specifically, it must be an HTMLImageElement or an HTMLInputElement whose type="image".
$moz is a Mozilla::Mechanize object. This is optional and currently unused.
Return the SRC attribute from the IMG tag.
Return 'IMG' for images.
Return the value of the width attribute. Only works for <img>.
width
Return the value of the height attribute. Only works for <img>.
height
Return the value alt attrubite.
alt
Copyright 2005,2009 Scott Lanning <slanning@cpan.org>. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Mozilla::Mechanize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mozilla::Mechanize
CPAN shell
perl -MCPAN -e shell install Mozilla::Mechanize
For more information on module installation, please visit the detailed CPAN module installation guide.