Close shouldn't send any real text for the parser to parse, since there might

be elements open that make the text appear in the final content model. bug 342223, r+sr=jst
This commit is contained in:
mrbkap%gmail.com 2006-06-21 00:39:24 +00:00
Родитель b70668570f
Коммит 1979b01fd6
1 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -2211,14 +2211,8 @@ nsHTMLDocument::Close()
: ePendingClose;
++mWriteLevel;
if (mContentType.EqualsLiteral("text/html")) {
rv = mParser->Parse(NS_LITERAL_STRING("</HTML>"),
mParser->GetRootContextKey(),
mContentType, PR_TRUE);
} else {
rv = mParser->Parse(EmptyString(), mParser->GetRootContextKey(),
mContentType, PR_TRUE);
}
rv = mParser->Parse(EmptyString(), mParser->GetRootContextKey(),
mContentType, PR_TRUE);
--mWriteLevel;
// XXX Make sure that all the document.written content is