X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FHTML%2FElement%2FLibrary.pm;h=03958537bf76139cf8f75e7c55edd43f1f39a9e7;hb=4b02c1732506b55a8ce53cfacd72daf35a34ccc5;hp=523c2111b8cc3987f0bf5a12000bf61dfd5666bd;hpb=de64e3d92123bc55a18ce3829f9c95af6e51e994;p=html-element-library.git 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