Make NOSCRIPT show up normally when script disabled (bug 77296), r=bzbarsky@mit.edu, sr=dbaron@dbaron.org

git-svn-id: svn://10.0.0.236/trunk@144183 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jkeiser%netscape.com
2003-06-26 06:10:03 +00:00
parent 91d7b6a584
commit 64ac997a95
8 changed files with 85 additions and 33 deletions

View File

@@ -3429,11 +3429,13 @@ CNavDTD::OpenContainer(const nsCParserNode *aNode,
break;
case eHTMLTag_noscript:
// we want to make sure that OpenContainer gets called below since we're
// not doing it here
done=PR_FALSE;
// If the script is disabled noscript should not be
// in the content model until the layout can somehow
// turn noscript's display property to block <-- bug 67899
if(mFlags & NS_DTD_FLAG_SCRIPT_ENABLED) {
done=PR_FALSE;
mScratch.Truncate();
mFlags |= NS_DTD_FLAG_ALTERNATE_CONTENT;
}