зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
fc178207ee
Коммит
a0b54b2ece
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче