Preserve comment declaration for textarea and viewsource. b=133044, r=heikki, sr=jst

git-svn-id: svn://10.0.0.236/trunk@122037 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2002-05-22 23:51:30 +00:00
parent d0e52c624a
commit eedcf9208e
6 changed files with 82 additions and 148 deletions

View File

@@ -1084,9 +1084,7 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
case eToken_comment:
{
nsAutoString theStr;
theStr.Assign(NS_LITERAL_STRING("<!--") +
aToken->GetStringValue() +
NS_LITERAL_STRING("-->") );
aToken->AppendSourceTo(theStr);
result=WriteTag(mCommentTag,theStr,0,PR_TRUE);
}
break;