- fixed <rdar://problem/
4065447> support outerHTML on IMG elements
* khtml/html/html_elementimpl.cpp:
(HTMLElementImpl::setOuterHTML):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9034
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-04-20 Vicki Murley <vicki@apple.com>
+
+ Reviewed by hyatt.
+
+ - fixed <rdar://problem/4065447> support outerHTML on IMG elements
+
+ * khtml/html/html_elementimpl.cpp:
+ (HTMLElementImpl::setOuterHTML):
+
2005-04-18 David Hyatt <hyatt@apple.com>
Fix min-height so that when it resolves to auto it does not use the box's intrinsic height.
bool HTMLElementImpl::setOuterHTML( const DOMString &html )
{
- DocumentFragmentImpl *fragment = createContextualFragment( html );
+ NodeImpl *p = parent();
+ if (!p->isHTMLElement())
+ return false;
+ HTMLElementImpl *parent = static_cast<HTMLElementImpl *>(p);
+ DocumentFragmentImpl *fragment = parent->createContextualFragment( html );
+
if (fragment == NULL) {
return false;
}