зеркало из https://github.com/mozilla/pjs.git
bug 287990: Bring back <plaintext> support. This supports it "properly" (i.e., no end tag). r=jst sr=dbaron a=shaver
This commit is contained in:
Родитель
af9d80a163
Коммит
39d38b7d8d
|
@ -1358,6 +1358,12 @@ CParserContext* nsParser::PopContext()
|
|||
if (mParserContext->mStreamListenerState != eOnStop) {
|
||||
mParserContext->mStreamListenerState = oldContext->mStreamListenerState;
|
||||
}
|
||||
// Update the current context's tokenizer to any information gleaned
|
||||
// while parsing document.write() calls (such as "a plaintext tag was
|
||||
// found")
|
||||
if (mParserContext->mTokenizer) {
|
||||
mParserContext->mTokenizer->CopyState(oldContext->mTokenizer);
|
||||
}
|
||||
}
|
||||
}
|
||||
return oldContext;
|
||||
|
|
Загрузка…
Ссылка в новой задаче