-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
5.5.7
The onChildNodes operation iterates over the child nodes in a wrong way. Instead of doing all child operations for every node, it steps to the next node after every child operation.
wrong code
while (iter.hasNext()) { for (NodeOperation childrenOp : childrenOps) { childrenOp.exec(iter.nextNode(), errorHandler); } }
correct code
while (iter.hasNext()) { Node childNode = iter.nextNode(); for (NodeOperation childrenOp : childrenOps) { childrenOp.exec(childNode, errorHandler); } }
Acceptance criteria