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
Mozilla::Mechanize::Link->new( $element )
$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.
$link->url
Returns the url from the link.
$link->text
Text of the link (innerHTML, so includes any HTML markup).
$link->name
NAME attribute from the source tag, if any.
$link->tag
Tag name ("A", "AREA", "FRAME" or "IFRAME").
$link->click
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.