YAX::Fragment - YAX document fragment node
use YAX::Fragment; $frag = YAX::Fragment->new( @kids ); # append all the children of $frag to $elmt $elmt->append( $frag )
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
insert(...) work too). YAX::Fragment inherits from YAX::Element.
This program is free software and may be modified and distributed under the same terms as Perl itself.