Index: WebCore/dom/Document.cpp |
=================================================================== |
--- WebCore/dom/Document.cpp (revision 73794) |
+++ WebCore/dom/Document.cpp (working copy) |
@@ -3307,7 +3307,7 @@ |
HashSet<NodeIterator*> nodeIteratorsList = m_nodeIterators; |
HashSet<NodeIterator*>::const_iterator nodeIteratorsEnd = nodeIteratorsList.end(); |
for (HashSet<NodeIterator*>::const_iterator it = nodeIteratorsList.begin(); it != nodeIteratorsEnd; ++it) { |
- if ((*it)->referenceNode() == node) { |
+ if ((*it)->root() == node) { |
detachNodeIterator(*it); |
newDocument->attachNodeIterator(*it); |
} |