fixed viewsource and parser/netlib bug

git-svn-id: svn://10.0.0.236/trunk@17913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-01-16 04:25:40 +00:00
parent c6325f6625
commit 1de8de8681
6 changed files with 32 additions and 8 deletions

View File

@@ -444,7 +444,10 @@ nsresult nsHTMLTokenizer::HandleSkippedContent(nsScanner& aScanner,CToken*& aTok
nsString& theTagStr=skippedToken->GetStringValueXXX();
CToken* endtoken=theRecycler->CreateTokenOfType(eToken_end,theTag,theTagStr);
if(endtoken){
endtoken->Reinitialize(theTag,theTagStr);
nsAutoString temp;
theTagStr.Mid(temp,2,theTagStr.Length()-3);
//now strip the leading and trailing delimiters...
endtoken->Reinitialize(theTag,temp);
AddToken(endtoken,result,mTokenDeque);
}
} //if