From 4b02c1732506b55a8ce53cfacd72daf35a34ccc5 Mon Sep 17 00:00:00 2001 From: tbrannon Date: Fri, 9 Jan 2009 14:05:07 -0500 Subject: [PATCH] passover method documented --- lib/HTML/Element/Library.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2