The manakai project

Web::DOM::AtomTextConstruct

The DOM AtomTextConstruct object

DESCRIPTION

The Web::DOM::AtomTextConstruct class implements the DOM AtomTextConstruct interface. The class is used by several Atom elements.

METHODS

In addition to the methods available for classes Web::DOM::Element and Web::DOM::AtomElement, the following method is available:

$el2 = $el->container

Return the container element for the text value. If the type attribute value is xhtml, it returns the HTML div element child. Otherwise, it returns the element itself. [ATOMDOM]

If the manakai-create-child-element configuration parameter is set to true, the HTML div element child is created by the method and then returned when it does not exist. Otherwise, no element is created and undef is returned.

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

Return or set the type attribute. [ATOMDOM]

There are subclasses for specific elements: Web::DOM::AtomRightsElement, Web::DOM::AtomSubtitleElement, Web::DOM::AtomSummaryElement, and Web::DOM::AtomTitleElement.

SPECIFICATION

ATOMDOM

Atom DOM <http://suika.suikawiki.org/www/markup/xml/atomdom>.

SEE ALSO

Web::DOM::AtomElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013 Wakaba <wakaba@suikawiki.org>.

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