in reply to Twig delete not deleting the entire section?

Under what circumstance is this desired behavior? This just leaves orphans.

I even specifically processed each of the children as shown above and it still didn't work.Further, it deleted the closing /site tag even though that hadn't been parsed by your explanations?

By the powers vested in me as a Perl Monk supplicant, I call a bug!

  • Comment on Re: Twig delete not deleting the entire section?

Replies are listed 'Best First'.
Re^2: Twig delete not deleting the entire section?
by Anonymous Monk on Mar 16, 2018 at 22:37 UTC

    Children handlers get triggered before parent handlers -- by design -- as soon as an element is completely parsed the handler is triggered -- its depth first -- cause thats how xml works

    If you are trying to delete children from parents, based on criteria in the children, you have to do it from parent handlers, simply use findnodes instead of handlers

    So sorry, but its not a bug :)