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 replace(...) and insert(...) work too). YAX::Fragment inherits from YAX::Element.
replace(...)
insert(...)
YAX::Element
Richard Hundt
This program is free software and may be modified and distributed under the same terms as Perl itself.
To install YAX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAX
CPAN shell
perl -MCPAN -e shell install YAX
For more information on module installation, please visit the detailed CPAN module installation guide.