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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user