From 0eaefa48bf3d259eeaa7e4293d35b8d03ed9082e Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Fri, 16 Sep 2005 00:01:30 +0000 Subject: [PATCH] bug 308592: MAP before BODY causes the body contents to not render. Remove MAP as a valid child of HTML, and fix a bogus check against HEAD being pushed onto mBodyContext. r+sr=jst --- parser/htmlparser/src/CNavDTD.cpp | 5 +++-- parser/htmlparser/src/nsElementTable.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/parser/htmlparser/src/CNavDTD.cpp b/parser/htmlparser/src/CNavDTD.cpp index 275906a3c7e..384428cc3a5 100644 --- a/parser/htmlparser/src/CNavDTD.cpp +++ b/parser/htmlparser/src/CNavDTD.cpp @@ -781,7 +781,7 @@ nsresult CNavDTD::HandleToken(CToken* aToken,nsIParser* aParser){ eHTMLTags top = mBodyContext->Last(); NS_ASSERTION(top != eHTMLTag_userdefined, "Userdefined tags should act as leaves in the head"); - if (top != eHTMLTag_head && + if (top != eHTMLTag_html && gHTMLElements[top].CanContain(theTag, mDTDMode)) { // Some tags (such as and