fixed nsbeta3+PDT[n] bugs: 48351, 49278, 50070, 52478. Partial fix (WIP) for 49678 and 52725. R=attinasi, buster, syd. A=buster

git-svn-id: svn://10.0.0.236/trunk@79696 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
2000-09-21 02:58:12 +00:00
parent 36f7537a83
commit 4621c994de
16 changed files with 134 additions and 94 deletions

View File

@@ -639,7 +639,8 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScann
theTermStrPos=kNotFound;
tempOffset=theBuffer.FindChar(kGreaterThan,PR_TRUE,tempOffset);
if(tempOffset>-1) {
theTermStrPos=theBuffer.RFind(aTerminalString,PR_TRUE,tempOffset,termStrLen+2);
//theTermStrPos=theBuffer.RFind(aTerminalString,PR_TRUE,tempOffset,termStrLen+2);
theTermStrPos=theBuffer.RFind(aTerminalString,PR_TRUE,tempOffset,tempOffset-(theCurrOffset-2)); //bug43513...
if(theTermStrPos>-1) break;
tempOffset++;
}