major rev to parsing engine

This commit is contained in:
rickg@netscape.com
1999-04-05 06:55:49 +00:00
parent e795c39aed
commit b7310def66
76 changed files with 1466 additions and 800 deletions

View File

@@ -232,6 +232,10 @@ nsresult CStartToken::Consume(PRUnichar aChar, nsScanner& aScanner) {
mTextValue.ToCString(buffer,sizeof(buffer)-1);
mTypeID = NS_TagToEnum(buffer);
if(eHTMLTag_image==mTypeID){
mTypeID=eHTMLTag_img;
}
//Good. Now, let's skip whitespace after the identifier,
//and see if the next char is ">". If so, we have a complete
//tag without attributes.
@@ -1564,7 +1568,7 @@ nsresult CSkippedContentToken::Consume(PRUnichar aChar,nsScanner& aScanner) {
static CCommentToken theComment;
result=theComment.Consume(aChar,aScanner);
if(NS_OK==result) {
result=aScanner.SkipWhitespace();
//result=aScanner.SkipWhitespace();
temp.Append(theComment.GetStringValueXXX());
}
} else {