NAME Mozilla::Mechanize::Link

Mozilla::Mechanize::Link - Mimic WWW::Mechanize::Link

SYNOPSIS

sorry, read the source for now

DESCRIPTION

The Mozilla::Mechanize::Link object is a thin wrapper around HTML link elements.

METHODS

$element is a Mozilla::DOM::HTML*Element object with a tagName() of IFRAME, FRAME, <AREA> or <A>.

Note: Although it supports the same methods as WWW::Mechanize::Link, it is a completely different implementation.

Returns the url from the link.

Text of the link (innerHTML, so includes any HTML markup).

NAME attribute from the source tag, if any.

Tag name ("A", "AREA", "FRAME" or "IFRAME").

XXX: to-do (does this fire onClick?)

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.