mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
fixed bug 1125
This commit is contained in:
parent
20641d86a2
commit
cef7239ebd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user