* khtml/html/HTMLElementImpl.cpp:
(WebCore::HTMLElementImpl::createContextualFragment):
- make nextChild a RefPtr to survive possible DOM changes
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12604
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-02-06 David Harrison <harrison@apple.com>
+
+ Suggested by Darin.
+
+ * khtml/html/HTMLElementImpl.cpp:
+ (WebCore::HTMLElementImpl::createContextualFragment):
+ - make nextChild a RefPtr to survive possible DOM changes
+
2006-02-06 Beth Dakin <bdakin@apple.com>
Reviewed by John and Adele
NodeImpl *firstChild = node->firstChild();
if (firstChild)
nextNode = firstChild;
- NodeImpl *nextChild;
+ RefPtr<NodeImpl> nextChild;
for (RefPtr<NodeImpl> child = firstChild; child; child = nextChild) {
nextChild = child->nextSibling();
node->removeChild(child.get(), ignoredExceptionCode);