The manakai project

Web::DOM::HTMLLinkElement

DOM HTMLLinkElement object

DESCRIPTION

The Web::DOM::HTMLLinkElement class implements the DOM HTMLLinkElement interface. The class is used by the HTML link element.

METHODS

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

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

Get or set the as attribute value. [HTML]

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

Get or set the crossorigin attribute value. [HTML]

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

Get or set the href attribute value. [HTML]

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

Get or set the hreflang attribute value. [HTML]

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

Get or set the integrity attribute value. [HTML]

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

Get or set the media attribute value. [HTML]

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

Get or set the nonce attribute value. [HTML]

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

Get or set the rel attribute value. [HTML]

$tokens = $el->rel_list

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

$el->sizes ($string)

Set the sizes attribute value. [HTML]

$tokens = $el->sizes

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

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

Get or set the type attribute value. [HTML]

Additionally, the following obsolete methods are available: charset, rev, and target. [HTML]

SPECIFICATION

HTML

HTML Standard <https://html.spec.whatwg.org/>.

SEE ALSO

Web::DOM::HTMLElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

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

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