Index: Source/WebCore/html/HTMLElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLElement.cpp (revision 120847) |
+++ Source/WebCore/html/HTMLElement.cpp (working copy) |
@@ -578,7 +578,7 @@ |
Element* contextElement = contextElementForInsertion(where, this, ec); |
if (!contextElement) |
return; |
- RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, this, AllowScriptingContent, ec); |
+ RefPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, contextElement, AllowScriptingContent, ec); |
if (!fragment) |
return; |
insertAdjacent(where, fragment.get(), ec); |