various bug fixes (PDT+ and other); removed warnings. r=syd

git-svn-id: svn://10.0.0.236/trunk@55067 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-12-02 10:14:42 +00:00
parent e99aad53d3
commit 0a160eb0a8
22 changed files with 134 additions and 114 deletions

View File

@@ -322,7 +322,7 @@ nsresult nsHTMLTokenizer::ConsumeToken(nsScanner& aScanner) {
break;
} //switch
return NS_OK;
return result;
}
@@ -692,8 +692,11 @@ nsresult nsHTMLTokenizer::ConsumeSpecialMarkup(PRUnichar aChar,CToken*& aToken,n
PRInt32 theIndex=theBufCopy.Find("DOCTYPE");
CTokenRecycler* theRecycler=(CTokenRecycler*)GetTokenRecycler();
if(theIndex==kNotFound)
aToken = theRecycler->CreateTokenOfType(eToken_comment,eHTMLTag_comment);
if(theIndex==kNotFound) {
if('['==theBufCopy.CharAt(0))
aToken = theRecycler->CreateTokenOfType(eToken_cdatasection,eHTMLTag_comment);
else aToken = theRecycler->CreateTokenOfType(eToken_comment,eHTMLTag_comment);
}
else
aToken = theRecycler->CreateTokenOfType(eToken_doctypeDecl,eHTMLTag_markupDecl);