fixed bug 1125

This commit is contained in:
rickg@netscape.com
1998-11-21 02:49:25 +00:00
parent 4b8eabe21a
commit 541b1add9d
2 changed files with 4 additions and 4 deletions

View File

@@ -306,10 +306,10 @@ nsresult CEndToken::Consume(PRUnichar aChar, CScanner& aScanner) {
//This code was added to fix Bug#1125.
//The problem occurs in bad tags like this: </font size>.
//"font size" was being viewed as the tag, which of course doesn't exist.
//Instead, just look at the first word.
//Instead, we only look at the first word.
int theBufPos=-1;
while(buffer[++theBufPos]){
if(kSpace==buffer[theBufPos]){
if(kSpace==buffer[theBufPos]){
buffer[theBufPos]=0;
break;
}