NAME

HTML::Object::DOM::Element::Template - HTML Object DOM Template Class

SYNOPSIS

use HTML::Object::DOM::Element::Template;
my $template = HTML::Object::DOM::Element::Template->new || 
    die( HTML::Object::DOM::Element::Template->error, "\n" );

VERSION

v0.2.0

DESCRIPTION

This interface enables access to the contents of an HTML template element.

INHERITANCE

+-----------------------+     +---------------------------+     +-------------------------+     +----------------------------+     +--------------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Template |
+-----------------------+     +---------------------------+     +-------------------------+     +----------------------------+     +--------------------------------------+

PROPERTIES

Inherits properties from its parent HTML::Object::DOM::Element

content

Read-only.

A read-only DocumentFragment which contains the DOM subtree representing the <template> element's template contents.

Example:

my $templateElement = $doc->querySelector('#foo');
my $documentFragment = $templateElement->content->cloneNode(1); # pass true to cloneNode

See also Mozilla documentation

METHODS

Inherits methods from its parent HTML::Object::DOM::Element

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Mozilla documentation, Mozilla documentation on template element

COPYRIGHT & LICENSE

Copyright(c) 2022 DEGUEST Pte. Ltd.

All rights reserved

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