The manakai project

Web::DOM::HTMLAnchorElement

DOM HTMLAnchorElement object

DESCRIPTION

The Web::DOM::HTMLAnchorElement class implements the DOM HTMLAnchorElement interface. The class is used by the HTML a element.

METHODS

In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, following methods are available:

$string = $el->download
$el->download ($string)

Return or set the download attribute. [HTML]

$string = $el->href
$el->href ($string)

Return or set the href attribute. [HTML]

$string = $el->hreflang
$el->hreflang ($string)

Return or set the hreflang attribute. [HTML]

$string = $el->ping
$el->ping ($string)

Return or set the ping attribute. [HTML]

$string = $el->rel
$el->rel ($string)
$el->rel_list ($string)

Return or set the rel attribute. [HTML]

$tokens = $el->rel_list

Return the Web::DOM::TokenList object for the rel attribute. [HTML]

$string = $el->text
$el->text ($string)

Return or set the text content of the element. [HTML]

$string = $el->type
$el->type ($string)

Return or set the type attribute. [HTML]

Following obsolete methods are also available: coords, charset, name, rev, and shape. [HTML]

SPECIFICATION

HTML

HTML Standard <https://www.whatwg.org/specs/web-apps/current-work/#the-a-element>.

SEE ALSO

Web::DOM::HTMLElement, Web::DOM::HTMLLinkElement, Web::DOM::HTMLAreaElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013-2016 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.