bug 265814: the output of document.write() is always parsed in quirks mode. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@164540 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1638,7 +1638,14 @@ nsParser::Parse(const nsAString& aSourceBuffer,
|
||||
|
||||
pc->mContextType=CParserContext::eCTString;
|
||||
pc->SetMimeType(aMimeType);
|
||||
pc->mDTDMode=aMode;
|
||||
if (pc->mPrevContext && aMode == eDTDMode_autodetect) {
|
||||
// Preserve the DTD mode from the last context, bug 265814.
|
||||
pc->mDTDMode = pc->mPrevContext->mDTDMode;
|
||||
}
|
||||
else {
|
||||
pc->mDTDMode = aMode;
|
||||
}
|
||||
|
||||
mUnusedInput.Truncate(0);
|
||||
|
||||
//printf("Parse(string) iterate: %i",PR_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user