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:
kjh-5727%comcast.net
2004-09-04 17:21:51 +00:00
parent aebea73882
commit 2d0c57e8db
2 changed files with 19 additions and 1 deletions

View File

@@ -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;