60498 - Strip off embedded null char found between tokens/tags.

r=heikki
sr=vidur


git-svn-id: svn://10.0.0.236/trunk@84889 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2001-01-12 21:16:40 +00:00
parent 272e2389d5
commit 4b939ebc0d
2 changed files with 12 additions and 2 deletions

View File

@@ -462,7 +462,12 @@ nsresult nsHTMLTokenizer::ConsumeToken(nsScanner& aScanner,PRBool& aFlushTokens)
}
else {
if(!nsCRT::IsAsciiSpace(theChar)) {
result=ConsumeText(theToken,aScanner);
if(theChar!=nsnull) {
result=ConsumeText(theToken,aScanner);
}
else {
aScanner.GetChar(theChar); // skip the embedded null char. Fix bug 64098.
}
break;
}
result=ConsumeWhitespace(theChar,theToken,aScanner);