зеркало из https://github.com/mozilla/pjs.git
Fix for bug# 6960. Treating '<<' as equivalent to '<<'
This commit is contained in:
Родитель
c4a8882517
Коммит
3f172c36c5
|
@ -342,8 +342,10 @@ nsresult nsHTMLTokenizer::ConsumeTag(PRUnichar aChar,CToken*& aToken,nsScanner&
|
|||
if(nsString::IsAlpha(aChar))
|
||||
result=ConsumeStartTag(aChar,aToken,aScanner);
|
||||
else if(kEOF!=aChar) {
|
||||
// We are not dealing with a tag. So, put back the char
|
||||
// and leave the decision to ConsumeText().
|
||||
aScanner.PutBack(aChar);
|
||||
nsAutoString temp("<");
|
||||
temp.Append(aChar);
|
||||
result=ConsumeText(temp,aToken,aScanner);
|
||||
}
|
||||
} //switch
|
||||
|
|
|
@ -342,8 +342,10 @@ nsresult nsHTMLTokenizer::ConsumeTag(PRUnichar aChar,CToken*& aToken,nsScanner&
|
|||
if(nsString::IsAlpha(aChar))
|
||||
result=ConsumeStartTag(aChar,aToken,aScanner);
|
||||
else if(kEOF!=aChar) {
|
||||
// We are not dealing with a tag. So, put back the char
|
||||
// and leave the decision to ConsumeText().
|
||||
aScanner.PutBack(aChar);
|
||||
nsAutoString temp("<");
|
||||
temp.Append(aChar);
|
||||
result=ConsumeText(temp,aToken,aScanner);
|
||||
}
|
||||
} //switch
|
||||
|
|
Загрузка…
Ссылка в новой задаче