updated comments

git-svn-id: svn://10.0.0.236/trunk@1428 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg
1998-05-12 00:59:32 +00:00
parent d18d2837c3
commit c9a40cc270
10 changed files with 1590 additions and 278 deletions

View File

@@ -879,7 +879,7 @@ PRBool nsHTMLParser::HandleSkippedContentToken(CToken* aToken) {
PRBool result=PR_TRUE;
if(IsWithinBody()) {
if(HasOpenContainer(eHTMLTag_body)) {
nsCParserNode aNode((CHTMLToken*)aToken);
result=AddLeaf(aNode);
}
@@ -937,22 +937,6 @@ PRBool nsHTMLParser::HandleStyleToken(CToken* aToken){
return result;
}
/**
* This method gets called to determine whether a given
* tag is itself a container
*
* @update gess 3/25/98
* @param aTag -- tag to test for containership
* @return PR_TRUE if given tag can contain other tags
*/
PRBool nsHTMLParser::IsWithinBody(void) const {
for(int i=0;i<mContextStackPos;i++) {
if(eHTMLTag_body==mContextStack[i])
return PR_TRUE;
}
return PR_FALSE;
}
/**
* This method does two things: 1st, help construct