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

This commit is contained in:
harishd@netscape.com
1999-06-02 16:33:08 +00:00
parent f37764340b
commit e5abcadead
2 changed files with 6 additions and 2 deletions
+3 -1
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