diff --git a/mozilla/htmlparser/src/CNavDTD.cpp b/mozilla/htmlparser/src/CNavDTD.cpp index f0de7b459c5..74ede1196b7 100644 --- a/mozilla/htmlparser/src/CNavDTD.cpp +++ b/mozilla/htmlparser/src/CNavDTD.cpp @@ -706,7 +706,7 @@ nsresult CNavDTD::HandleToken(CToken* aToken,nsIParser* aParser){ if(!FindTagInSet(theTag,passThru,sizeof(passThru)/sizeof(eHTMLTag_unknown))){ if(!gHTMLElements[eHTMLTag_html].SectionContains(theTag,PR_FALSE)) { if((!mHadBody) && (!mHadFrameset)){ - if(mHasOpenHead) { + if(mHasOpenHead) { //just fall through and handle current token if(!gHTMLElements[eHTMLTag_head].IsChildOfHead(theTag)){ @@ -1333,6 +1333,7 @@ nsresult CNavDTD::HandleStartToken(CToken* aToken) { break; case eHTMLTag_userdefined: + case eHTMLTag_noscript: //HACK XXX! Throw noscript on the floor for now. isTokenHandled=PR_TRUE; break; @@ -2515,6 +2516,7 @@ nsresult CNavDTD::OpenHead(const nsIParserNode *aNode){ */ nsresult CNavDTD::CloseHead(const nsIParserNode *aNode){ nsresult result=NS_OK; + if(mHasOpenHead) { if(0==--mHasOpenHead){ @@ -3198,12 +3200,12 @@ nsresult CNavDTD::AddHeadLeaf(nsIParserNode *aNode){ //this code has been added to prevent tags from being processed inside //the document if the tag itself was found in a , , or