From 2cccb5c8abdcaf02644f0fc86cd62d4c35ccd2ee Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Tue, 7 Dec 1999 05:07:53 +0000 Subject: [PATCH] removed 2 warnings; r=none git-svn-id: svn://10.0.0.236/trunk@55531 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/CNavDTD.cpp | 7 +++++-- mozilla/htmlparser/src/nsDTDUtils.cpp | 2 +- mozilla/parser/htmlparser/src/CNavDTD.cpp | 7 +++++-- mozilla/parser/htmlparser/src/nsDTDUtils.cpp | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mozilla/htmlparser/src/CNavDTD.cpp b/mozilla/htmlparser/src/CNavDTD.cpp index a7f505aa6e2..f0de7b459c5 100644 --- a/mozilla/htmlparser/src/CNavDTD.cpp +++ b/mozilla/htmlparser/src/CNavDTD.cpp @@ -709,6 +709,9 @@ nsresult CNavDTD::HandleToken(CToken* aToken,nsIParser* aParser){ if(mHasOpenHead) { //just fall through and handle current token if(!gHTMLElements[eHTMLTag_head].IsChildOfHead(theTag)){ + + //If you're here then we found a child of the body that was out of place. + //We're going to move it to the body by storing it temporarily on the misplaced stack. mMisplacedContent.Push(aToken); aToken->mUseCount++; return result; @@ -2987,7 +2990,7 @@ nsresult CNavDTD::CloseContainersTo(PRInt32 anIndex,eHTMLTags aTarget, PRBool aC //style tag that got onto that tag stack from a stylestack somewhere. //The the target==theTag, then pop it from the stylestack. if(theTag==aTarget) { - nsIParserNode* theNextNode=mBodyContext->PopStyle(theTag); + theNode=(nsCParserNode*)mBodyContext->PopStyle(theTag); } } } @@ -3190,7 +3193,7 @@ nsresult CNavDTD::AddLeaf(const nsIParserNode *aNode){ nsresult CNavDTD::AddHeadLeaf(nsIParserNode *aNode){ nsresult result=NS_OK; - static eHTMLTags gNoXTags[]={eHTMLTag_noframes,eHTMLTag_nolayer,eHTMLTag_noscript}; + static eHTMLTags gNoXTags[]={eHTMLTag_noembed,eHTMLTag_noframes,eHTMLTag_nolayer,eHTMLTag_noscript}; //this code has been added to prevent tags from being processed inside //the document if the tag itself was found in a , , or