NAME Mozilla::Mechanize::Image

Mozilla::Mechanize::Image - Mimic WWW::Mechanize::Image

SYNOPSIS

sorry, read the code for now

DESCRIPTION

The Mozilla::Mechanize::Image object is a thin wrapper around an image element.

METHODS

Mozilla::Mechanize::Image->new($image_node, $moz)

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.

$image->url

Return the SRC attribute from the IMG tag.

$image->tag

Return 'IMG' for images.

$image->width

Return the value width attrubite.

$image->height

Return the value height attrubite.

$image->alt

Return the value alt attrubite.

COPYRIGHT AND LICENSE

Copyright 2005, 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.