Index: Source/core/xml/XMLErrors.cpp |
diff --git a/Source/core/xml/XMLErrors.cpp b/Source/core/xml/XMLErrors.cpp |
index caad7f03667d2372f86cb476a6179f183872a84b..11936242c65d733b20361807b000aff1c0d9ba8f 100644 |
--- a/Source/core/xml/XMLErrors.cpp |
+++ b/Source/core/xml/XMLErrors.cpp |
@@ -151,7 +151,7 @@ void XMLErrors::insertErrorMessageBlock() |
Node* firstChild = documentElement->firstChild(); |
if (firstChild) |
- documentElement->parserInsertBefore(reportElement, documentElement->firstChild()); |
+ documentElement->parserInsertBefore(reportElement, *firstChild); |
else |
documentElement->parserAppendChild(reportElement); |