diff options
author | David A. Madore <david+git@madore.org> | 2011-09-07 12:20:27 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2011-09-07 12:20:27 +0200 |
commit | bc2b0d5215873a68d336e4a942a9ae860b9b9bd4 (patch) | |
tree | 2dfda10c0e051f8b8bbb7c9d5d56aa9b5f87c05d | |
parent | ff2d05fd5dfb34cb369b1a700d9b439d9ad628e4 (diff) | |
download | damlengine-bc2b0d5215873a68d336e4a942a9ae860b9b9bd4.tar.gz damlengine-bc2b0d5215873a68d336e4a942a9ae860b9b9bd4.tar.bz2 damlengine-bc2b0d5215873a68d336e4a942a9ae860b9b9bd4.zip |
Process children nodes even when killing <a> element.
-rw-r--r-- | org/madore/damlengine/TodoKillAElement.java | 7 |
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); } } |