This commit is contained in:
rickg%netscape.com 1998-11-21 02:48:01 +00:00
Родитель 266f3af17a
Коммит 5be8c89cb6
2 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -302,6 +302,18 @@ nsresult CEndToken::Consume(PRUnichar aChar, CScanner& aScanner) {
char buffer[300];
mTextValue.ToCString(buffer,sizeof(buffer)-1);
//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.
int theBufPos=-1;
while(buffer[++theBufPos]){
if(kSpace==buffer[theBufPos]){
buffer[theBufPos]=0;
break;
}
}
mTypeID= NS_TagToEnum(buffer);
if(NS_OK==result)

Просмотреть файл

@ -302,6 +302,18 @@ nsresult CEndToken::Consume(PRUnichar aChar, CScanner& aScanner) {
char buffer[300];
mTextValue.ToCString(buffer,sizeof(buffer)-1);
//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.
int theBufPos=-1;
while(buffer[++theBufPos]){
if(kSpace==buffer[theBufPos]){
buffer[theBufPos]=0;
break;
}
}
mTypeID= NS_TagToEnum(buffer);
if(NS_OK==result)