HTML::HTML5::DOM::HTMLAreaElement - implementation of the HTMLAreaElement interface of the HTML DOM
HTML::HTML5::DOM::HTMLAreaElement is an implementation of the HTMLAreaElement interface of the HTML DOM. See HTML::HTML5::DOM for a list of the conventions that have been used when translating the DOM to Perl.
This class applies to the following HTML elements.
{http://www.w3.org/1999/xhtml}area
HTML::HTML5::DOM::HTMLAreaElement inherits methods from the following Perl classes.
HTML::HTML5::DOM::HTMLElement
XML::LibXML::Augment::Element
XML::LibXML::Augment::Node
XML::LibXML::Element
XML::LibXML::Node
XML::LibXML::QuerySelector
HTML::HTML5::DOMutil::FancyISA
As well as its inherited methods, this class provides the following methods.
alt
Called with no arguments, is a shortcut for $elem->getAttribute("alt"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("alt")
setAttribute
removeAttribute
coords
Called with no arguments, is a shortcut for $elem->getAttribute("coords"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("coords")
hash
A shortcut for $elem->href->fragment. (Does not act as a setter.)
$elem->href->fragment
host
A shortcut for $elem->href->host_port. (Does not act as a setter.)
$elem->href->host_port
hostname
A shortcut for $elem->href->host. (Does not act as a setter.)
$elem->href->host
href
Called with no arguments, is a shortcut for $elem->getAttribute("href") but as a blessed URI object. Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("href")
hreflang
Called with no arguments, is a shortcut for $elem->getAttribute("hreflang"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("hreflang")
media
Called with no arguments, is a shortcut for $elem->getAttribute("media"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("media")
p5_follow
Shortcut for HTTP::Request->new(GET => $elem->href)
HTTP::Request->new(GET => $elem->href)
pathname
A shortcut for $elem->href->path. (Does not act as a setter.)
$elem->href->path
port
A shortcut for $elem->href->port. (Does not act as a setter.)
$elem->href->port
protocol
A shortcut for $elem->href->scheme. (Does not act as a setter.)
$elem->href->scheme
rel
Called with no arguments, is a shortcut for $elem->getAttribute("rel"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("rel")
relList
Splits $elem->getAttribute("rel") into a list on whitespace.
rev
Called with no arguments, is a shortcut for $elem->getAttribute("rev"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("rev")
revList
Splits $elem->getAttribute("rev") into a list on whitespace.
search
A shortcut for $elem->href->query. (Does not act as a setter.)
$elem->href->query
shape
Called with no arguments, is a shortcut for $elem->getAttribute("shape"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("shape")
target
Called with no arguments, is a shortcut for $elem->getAttribute("target"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("target")
type
Called with no arguments, is a shortcut for $elem->getAttribute("type"). Called with a defined argument, acts as setAttribute. Called with undef as an argument, acts as removeAttribute.
$elem->getAttribute("type")
http://rt.cpan.org/Dist/Display.html?Queue=HTML-HTML5-DOM.
HTML::HTML5::DOM.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012, 2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install HTML::HTML5::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::HTML5::DOM
CPAN shell
perl -MCPAN -e shell install HTML::HTML5::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.