Web::DOM::AtomLinkElement
The DOM AtomLinkElement
object
DESCRIPTION
The Web::DOM::AtomLinkElement
class implements the DOM AtomLinkElement
interface.
The class is used by the Atom link
element.
METHODS
In addition to the methods available for classes Web::DOM::Element and Web::DOM::AtomElement, following methods are available:
$string = $el->href
$el->href ($string)
-
Return or set the
href
attribute. [ATOMDOM] $string = $el->hreflang
$el->hreflang ($string)
-
Return or set the
hreflang
attribute. [ATOMDOM] $string = $el->length
$el->length ($string)
-
Return or set the
length
attribute. [ATOMDOM] $string = $el->rel
$el->rel ($string)
-
Return or set the
rel
attribute. The getter expands the link relation type with no:
character by prependinghttp://www.iana.org/assignments/relation/
. The setter removes any precedinghttp://www.iana.org/assignments/relation/
substring from the new value. [ATOMDOM]Therefore, the
rel
attribute value of anatom:link
element whoserel
content attribute value isself
ishttp://www.iana.org/assignments/relation/self
. The Atom specification defines that therel
attribute valueshttp://www.iana.org/assignments/relation/self
andself
are equivalent. $string = $el->title
$el->title ($string)
-
Return or set the
title
attribute. [ATOMDOM] $string = $el->thread_count
$el->thread_count ($string)
-
Return or set the
thr:count
attribute. [ATOMDOM] $number = $el->thread_updated
$el->thread_updated ($number)
-
Return or set the date-time value of the
thr:updated
attribute. The date-time value is represented astime_t
real number (i.e. seconds from the Unix epoch). [ATOMDOM] [DOMPERL] $string = $el->type
$el->type ($string)
-
Return or set the
type
attribute. [ATOMDOM]
DEPENDENCY
For the thread_updated
method,
the perl-web-datetime package <https://github.com/manakai/perl-web-datetime>
is required.
SPECIFICATIONS
- ATOMDOM
-
Atom DOM
<http://suika.suikawiki.org/www/markup/xml/atomdom>
. - DOMPERL
-
manakai's DOM Perl Binding
<http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013-2014 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.