diff --git a/htmlparser/src/CNavDTD.cpp b/htmlparser/src/CNavDTD.cpp index b63dbd0a806..bec75e1fa1d 100644 --- a/htmlparser/src/CNavDTD.cpp +++ b/htmlparser/src/CNavDTD.cpp @@ -1804,6 +1804,7 @@ nsresult CNavDTD::CollectSkippedContent(nsCParserNode& aNode,PRInt32 &aCount) { eHTMLTokenTypes theTokenType=(eHTMLTokenTypes)theNextToken->GetTokenType(); + theTempStr.Truncate(); if((eHTMLTag_textarea==theNodeTag) && (eToken_entity==theTokenType)) { ((CEntityToken*)theNextToken)->TranslateToUnicodeStr(theTempStr); } diff --git a/parser/htmlparser/src/CNavDTD.cpp b/parser/htmlparser/src/CNavDTD.cpp index b63dbd0a806..bec75e1fa1d 100644 --- a/parser/htmlparser/src/CNavDTD.cpp +++ b/parser/htmlparser/src/CNavDTD.cpp @@ -1804,6 +1804,7 @@ nsresult CNavDTD::CollectSkippedContent(nsCParserNode& aNode,PRInt32 &aCount) { eHTMLTokenTypes theTokenType=(eHTMLTokenTypes)theNextToken->GetTokenType(); + theTempStr.Truncate(); if((eHTMLTag_textarea==theNodeTag) && (eToken_entity==theTokenType)) { ((CEntityToken*)theNextToken)->TranslateToUnicodeStr(theTempStr); }