Index: Source/core/html/parser/HTMLDocumentParser.cpp |
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
index a2ef11a000ff8d55335554de455d0d51f4909bc4..7be7840311503dd8890731a3fe4287a6fd0ba177 100644 |
--- a/Source/core/html/parser/HTMLDocumentParser.cpp |
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
@@ -118,6 +118,7 @@ HTMLDocumentParser::HTMLDocumentParser(DocumentFragment* fragment, Element* cont |
ASSERT(!shouldUseThreading()); |
bool reportErrors = false; // For now document fragment parsing never reports errors. |
m_tokenizer->setState(tokenizerStateForContextElement(contextElement, reportErrors, m_options)); |
+ m_xssAuditor.initForFragment(); |
} |
HTMLDocumentParser::~HTMLDocumentParser() |