Fix for bug# 6960. Treating '<<' as equivalent to '<<'
git-svn-id: svn://10.0.0.236/trunk@33425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d13f41523a
commit
e8154e17b9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user