The manakai project

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 prepending http://www.iana.org/assignments/relation/. The setter removes any preceding http://www.iana.org/assignments/relation/ substring from the new value. [ATOMDOM]

Therefore, the rel attribute value of an atom:link element whose rel content attribute value is self is http://www.iana.org/assignments/relation/self. The Atom specification defines that the rel attribute values http://www.iana.org/assignments/relation/self and self 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 as time_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

Web::DOM::AtomElement.

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.