Bug 84430: Unclosed CDATA sections get dropped.
Patch by Blake Kaplan (mrbkap@rice.edu), r/sr=bzbarsky. git-svn-id: svn://10.0.0.236/trunk@161761 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1123,7 +1123,9 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
|
||||
nsAutoString theStr;
|
||||
theStr.AssignLiteral("<!");
|
||||
theStr.Append(aToken->GetStringValue());
|
||||
theStr.AppendLiteral(">");
|
||||
// Treat CDATA sections specially because they remember their last
|
||||
// character and can come back malformed.
|
||||
// theStr.AppendLiteral(">");
|
||||
result=WriteTag(mCDATATag,theStr,0,PR_TRUE);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user