Mozilla::Mechanize::Image - Mimic L


Mozilla-Mechanize documentation  | view source Contained in the Mozilla-Mechanize distribution.

Index


NAME Mozilla::Mechanize::Image

Top

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

SYNOPSIS

Top

sorry, read the code for now

DESCRIPTION

Top

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

METHODS

Top

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

Initialize a new object. $image_node is a Mozilla::DOM::HTMLElement (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 of the width attribute. Only works for <img>.

$image->height

Return the value of the height attribute. Only works for <img>.

$image->alt

Return the value alt attrubite.

COPYRIGHT AND LICENSE

Top


Mozilla-Mechanize documentation  | view source Contained in the Mozilla-Mechanize distribution.