HTML::ElementSuper

HTML::ElementSuper is a Perl extension for HTML::Element(3).
Download

HTML::ElementSuper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matthew P. Sisk
  • Publisher web site:
  • http://search.cpan.org/~stigmata/HTML-CalendarMonthSimple-1.25/CalendarMonthSimple.pm

HTML::ElementSuper Tags


HTML::ElementSuper Description

HTML::ElementSuper is a Perl extension for HTML::Element(3). HTML::ElementSuper is a Perl extension for HTML::Element(3).SYNOPSIS use HTML::ElementSuper; ### Positional extension $e = new HTML::ElementSuper 'font'; $sibling_number = $e->addr(); $e2 = new HTML::ElementSuper 'p'; $e2->push_content($e); # @coords = $e->position(); $depth_in_pos_tree = $e->depth(); ### Replacer extension $er = new HTML::ElementSuper 'font'; # Tree beneath $er, if present, is dropped. $er->replace_content(new HTML::Element 'p'); ### Wrapper extension $ew = new HTML::ElementSuper; $ew->push_content("Tickle me, baby"); $ew->wrap_content(new HTML::Element 'font', color => 'pink'); print $ew->as_HTML(); ### Maskable extension $em = new HTML::ElementSuper 'td'; $em->mask(1); print $em->as_HTML; # nada $em->mask(0); print $em->as_HTML; # $e and its children are visible ### Cloning of own tree or another element's tree ### (is this the correct clomenature? :-) $a = new HTML::ElementSuper 'font', size => 2; $b = new HTML::ElementSuper 'font', color => 'red'; $a_clone = $a->clone; $b_clone = $a->clone($b); # Multiple elements can be cloned @clone_clones = $a_clone->clone($a_clone, $b_clone); Requirements: · Perl


HTML::ElementSuper Related Software