From bc2b0d5215873a68d336e4a942a9ae860b9b9bd4 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 7 Sep 2011 12:20:27 +0200 Subject: Process children nodes even when killing element. --- org/madore/damlengine/TodoKillAElement.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org/madore/damlengine/TodoKillAElement.java b/org/madore/damlengine/TodoKillAElement.java index ea63a05..4478fae 100644 --- a/org/madore/damlengine/TodoKillAElement.java +++ b/org/madore/damlengine/TodoKillAElement.java @@ -23,10 +23,17 @@ public final class TodoKillAElement extends TodoDefaultElement { @Override public void handleNodeOnly() { ArrayList childList = getChildList(node); + ArrayList toProcess = new ArrayList(childList.size()); for ( Node child : childList ) { node.getParentNode().insertBefore(child, node); + if ( child.getNodeType() == Node.ELEMENT_NODE ) { + TodoElement it + = TodoElement.getTodoElement((Element)child, this.ctx, this); + toProcess.add(it); + } } node.getParentNode().removeChild(node); + this.ownerDeque.registerAtStart(toProcess); } } -- cgit v1.2.3