Make sure the encoding of the HTML5 parser is confident when the entire doc is document.written()

This commit is contained in:
Henri Sivonen 2009-04-17 15:54:59 +03:00
parent eed73a0439
commit 797e7e764b

View File

@ -320,6 +320,7 @@ nsHtml5Parser::Parse(const nsAString& aSourceBuffer,
mTokenizer->start();
mLifeCycle = PARSING;
mParser = this;
mCharsetSource = kCharsetFromOtherComponent;
break;
default:
break;