Richard Hundt
and 1 contributors

NAME

YAX::Fragment - YAX document fragment node

SYNOPSIS

 use YAX::Fragment;
 $frag = YAX::Fragment->new( @kids );

 # append all the children of $frag to $elmt
 $elmt->append( $frag )

DESCRIPTION

This module implements document fragment nodes for YAX. These are useful for manipulating the DOM with sets of nodes. When a fragment is appended to an element node, only its children become part of the DOM tree, the fragment itself is discarded.

All DOM mutation operations which take an element as a parameter can take a fragment as well (so replace(...) and insert(...) work too). YAX::Fragment inherits from YAX::Element.

SEE ALSO

YAX::Element

AUTHOR

 Richard Hundt

LICENSE

This program is free software and may be modified and distributed under the same terms as Perl itself.