Fixed: <rdar://problem/
3924219> Calling setOuterHTML: on a DOMHTMLHtmlElement can crash a program
* khtml/html/html_elementimpl.cpp:
(HTMLElementImpl::setOuterHTML): Added a nil check for fragments who don't have parents.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8324
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-08 Kevin Decker <kdecker@apple.com>
+
+ Reviewed by Ken.
+
+ Fixed: <rdar://problem/3924219> Calling setOuterHTML: on a DOMHTMLHtmlElement can crash a program
+
+ * khtml/html/html_elementimpl.cpp:
+ (HTMLElementImpl::setOuterHTML): Added a nil check for fragments who don't have parents.
+
2005-01-07 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
}
int ec = 0;
- parentNode()->replaceChild(fragment, this, ec);
+
+ if (parentNode()) {
+ parentNode()->replaceChild(fragment, this, ec);
+ }
+
return !ec;
}