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

git-svn-id: svn://10.0.0.236/trunk@180335 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2005-09-16 00:01:30 +00:00
parent eb5e8e85a4
commit 8981ec9fc2
2 changed files with 4 additions and 3 deletions

View File

@@ -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 <object> and <script>) are opened in the
// head and allow other non-head content to be children.
@@ -3085,7 +3085,8 @@ CNavDTD::CloseContainer(const eHTMLTags aTag, eHTMLTags aTarget,PRBool aClosedBy
switch (aTag) {
case eHTMLTag_html:
result=CloseHTML(); break;
result=CloseHTML();
break;
case eHTMLTag_head:
result=CloseHead();