major rev to parsing engine

git-svn-id: svn://10.0.0.236/trunk@26286 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-04-05 06:55:49 +00:00
parent 51f222c7be
commit 716929551b
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 {