Ignoring unwanted tags in <head>

git-svn-id: svn://10.0.0.236/trunk@24672 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
1999-03-22 18:46:01 +00:00
parent 95a2ea8929
commit 24bc2c902e
2 changed files with 8 additions and 2 deletions

View File

@@ -1693,10 +1693,13 @@ PRBool CNavDTD::CanOmit(eHTMLTags aParent,eHTMLTags aChild) const {
CTagList* theParents=gHTMLElements[aChild].GetSpecialParents();
if(theParents) {
PRInt32 theParentIndex=theParents->GetTopmostIndexOf(mBodyContext->mTags);
result=PRBool(kNotFound==theParentIndex);
return PRBool(kNotFound==theParentIndex);
// result=!theParents->Contains(aParent); THE OLD WAY
}
}
if(!gHTMLElements[aParent].CanContain(aChild)){
return PR_TRUE;
}
break;
} //switch
break;