summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/XMLDocumentParserQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/XMLDocumentParserQt.cpp')
-rw-r--r--WebCore/dom/XMLDocumentParserQt.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/dom/XMLDocumentParserQt.cpp b/WebCore/dom/XMLDocumentParserQt.cpp
index 75a20be..03b083e 100644
--- a/WebCore/dom/XMLDocumentParserQt.cpp
+++ b/WebCore/dom/XMLDocumentParserQt.cpp
@@ -37,7 +37,9 @@
#include "FrameLoader.h"
#include "FrameView.h"
#include "HTMLEntityParser.h"
+#include "HTMLHtmlElement.h"
#include "HTMLLinkElement.h"
+#include "HTMLNames.h"
#include "HTMLStyleElement.h"
#include "ProcessingInstruction.h"
#include "ResourceError.h"
@@ -524,6 +526,11 @@ void XMLDocumentParser::parseStartElement()
if (m_view && !newElement->attached())
newElement->attach();
+#if ENABLE(OFFLINE_WEB_APPLICATIONS)
+ if (newElement->hasTagName(HTMLNames::htmlTag))
+ static_cast<HTMLHtmlElement*>(newElement.get())->insertedByParser();
+#endif
+
if (isFirstElement && document()->frame())
document()->frame()->loader()->dispatchDocumentElementAvailable();
}