Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 1a98cf035b19329dd366f97188a7a7072d8790bd..faf566ba5ffb14534f756106226b9abc697346b9 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -434,7 +434,7 @@ void HTMLElement::setOuterText(const String &text, ExceptionState& exceptionStat |
newChild = Text::create(document(), text); |
// textToFragment might cause mutation events. |
- if (!this || !parentNode()) |
+ if (!parentNode()) |
exceptionState.throwDOMException(HierarchyRequestError, "The element has no parent."); |
if (exceptionState.hadException()) |