Fix for bug# 6960. Treating '<<' as equivalent to '&lt;<'

git-svn-id: svn://10.0.0.236/trunk@33425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com 1999-06-02 16:33:08 +00:00
parent d13f41523a
commit e8154e17b9
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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