bug 264882: view-source turns ξ into &#xi; r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@164273 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1197,17 +1197,7 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
|
||||
break;
|
||||
|
||||
case eToken_entity:
|
||||
{
|
||||
nsAutoString theStr;
|
||||
theStr.Assign(aToken->GetStringValue());
|
||||
if(!theStr.LowerCaseEqualsLiteral("xi")) {
|
||||
PRUnichar theChar=theStr.CharAt(0);
|
||||
if((nsCRT::IsAsciiDigit(theChar)) || ('X'==theChar) || ('x'==theChar)){
|
||||
theStr.Assign(NS_LITERAL_STRING("#") + theStr);
|
||||
}
|
||||
}
|
||||
result=WriteTag(mEntityTag,theStr,0,aToken->IsInError());
|
||||
}
|
||||
result=WriteTag(mEntityTag,aToken->GetStringValue(),0,aToken->IsInError());
|
||||
break;
|
||||
|
||||
case eToken_instruction:
|
||||
|
||||
Reference in New Issue
Block a user