Commit 46af97b7 authored by Guido van Rossum's avatar Guido van Rossum

Add XXX comment about speeding up a loop over all childNodes.

parent 68ec7add
......@@ -193,6 +193,7 @@ class DOMVisitor:
"""
Call visitNode() for each child of the given node.
"""
# XXX eventually use firstChild/nextSibling, for speed
for child in node.childNodes:
self.visitNode(child)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment