From: tbrannon Date: Fri, 9 Jan 2009 19:05:07 +0000 (-0500) Subject: passover method documented X-Git-Tag: 5.200_001~47 X-Git-Url: http://git.ieval.ro/?p=html-element-library.git;a=commitdiff_plain;h=4b02c1732506b55a8ce53cfacd72daf35a34ccc5 passover method documented --- diff --git a/lib/HTML/Element/Library.pm b/lib/HTML/Element/Library.pm index 523c211..0395853 100644 --- a/lib/HTML/Element/Library.pm +++ b/lib/HTML/Element/Library.pm @@ -805,6 +805,14 @@ id C remains. For age less than 18, the node with id C remains. Otherwise our "else" condition fires and the child with id C remains. +=head3 $tree->passover($id_of_element) + +In some cases, you know exactly which element should survive. In this case, +you can simply call C to remove it's siblings. For the HTML +above, you could delete C and C by simply calling: + + $tree->passover('under18'); + =head3 $tree->highlander2($tree, $conditionals, @conditionals_args) Right around the same time that C came into being, Seamstress