summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine
diff options
context:
space:
mode:
Diffstat (limited to 'org/madore/damlengine')
-rw-r--r--org/madore/damlengine/TodoKillAElement.java7
1 files changed, 7 insertions, 0 deletions
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<Node> childList = getChildList(node);
+ ArrayList<TodoElement> toProcess = new ArrayList<TodoElement>(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);
}
}