Index: Source/core/html/parser/TextDocumentParser.cpp |
diff --git a/Source/core/html/parser/TextDocumentParser.cpp b/Source/core/html/parser/TextDocumentParser.cpp |
index 38175a0f6bfea99a4338b6a7d7afcd1f8b2bd707..712637318efc297425bfa1dd54a534386d8bc2e5 100644 |
--- a/Source/core/html/parser/TextDocumentParser.cpp |
+++ b/Source/core/html/parser/TextDocumentParser.cpp |
@@ -49,6 +49,13 @@ void TextDocumentParser::append(PassRefPtr<StringImpl> text) |
HTMLDocumentParser::append(text); |
} |
+void TextDocumentParser::appendBytes(const char* data, size_t length) |
+{ |
+ if (!m_haveInsertedFakePreElement) |
+ insertFakePreElement(); |
+ HTMLDocumentParser::appendBytes(data, length); |
+} |
+ |
void TextDocumentParser::insertFakePreElement() |
{ |
// In principle, we should create a specialized tree builder for |