checkin to fix bugs per hofmann

This commit is contained in:
rickg@netscape.com
1999-05-20 07:36:54 +00:00
parent 6ea6786f39
commit 1b94616879
8 changed files with 22 additions and 14 deletions

View File

@@ -505,7 +505,7 @@ nsresult CTextToken::Consume(PRUnichar aChar, nsScanner& aScanner) {
* @param aScanner -- controller of underlying input source
* @return error result
*/
nsresult CTextToken::ConsumeUntil(PRUnichar aChar,nsScanner& aScanner,nsString& aTerminalString){
nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScanner& aScanner,nsString& aTerminalString){
PRBool done=PR_FALSE;
nsresult result=NS_OK;
nsString temp;
@@ -523,7 +523,7 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,nsScanner& aScanner,nsString&
if((NS_OK==result) && (kLessThan==aChar)) {
//we're reading a tag or a comment...
result=aScanner.GetChar(theChar);
if((NS_OK==result) && (kExclamation==theChar)) {
if((NS_OK==result) && (kExclamation==theChar) && (PR_FALSE==aIgnoreComments)) {
//read a comment...
static CCommentToken theComment;
result=theComment.Consume(aChar,aScanner);