зеркало из https://github.com/mozilla/pjs.git
fixed bug 1125
This commit is contained in:
Родитель
5be8c89cb6
Коммит
09b4bd3636
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче