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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user