updated comments
git-svn-id: svn://10.0.0.236/trunk@1428 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user