fixed bug 2274

git-svn-id: svn://10.0.0.236/trunk@17557 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-01-12 06:04:05 +00:00
parent acb177fff4
commit 86ed346089
4 changed files with 10 additions and 10 deletions

View File

@@ -725,7 +725,7 @@ nsresult CNavDTD::HandleDefaultStartToken(CToken* aToken,eHTMLTags aChildTag,nsI
static eHTMLTags gBodyBlockers[]={eHTMLTag_body,eHTMLTag_frameset,eHTMLTag_head,eHTMLTag_map};
PRInt32 theBodyBlocker=GetTopmostIndexOf(gBodyBlockers,sizeof(gBodyBlockers)/sizeof(eHTMLTag_unknown));
if(!theBodyBlocker) {
if(kNotFound==theBodyBlocker) {
if(CanPropagate(eHTMLTag_body,aChildTag)) {
mHasOpenBody=PR_TRUE;
CStartToken theToken(eHTMLTag_body); //open the body container...
@@ -1269,7 +1269,7 @@ PRBool CNavDTD::CanPropagate(eHTMLTags aParentTag,eHTMLTags aChildTag) const {
}//if
}//if
else if(nsHTMLElement::IsTextTag(aChildTag)){
result=PR_TRUE;
}
return result;
}

View File

@@ -21,7 +21,7 @@
#include "nsParser.h"
#include "nsIContentSink.h"
#include "nsString.h"
#include "nsCRT.h"
#include "nsCRT.h"
#include "nsScanner.h"
#include "prenv.h" //this is here for debug reasons...
#include "plstr.h"
@@ -32,7 +32,7 @@
#include "nsWellFormedDTD.h"
#include "nsViewSourceHTML.h" //uncomment this to partially enable viewsource...
#define rickgdebug
#undef rickgdebug
#ifdef rickgdebug
#include "CRtfDTD.h"
#endif
@@ -863,7 +863,7 @@ nsresult nsParser::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUin
theStartPos+=theNumRead;
}//while
return ResumeParse();
return ResumeParse();
}
/**