Added a temporary hack to normalize nested lists

git-svn-id: svn://10.0.0.236/trunk@5231 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-07-09 17:05:36 +00:00
parent fb77f4be1c
commit fc4de87351
2 changed files with 10 additions and 2 deletions

View File

@@ -1124,7 +1124,11 @@ PRBool CNavDTD::CanContain(PRInt32 aParent,PRInt32 aChild) {
break; //singletons can't contain anything...
case eHTMLTag_li:
if (eHTMLTag_li == aChild) {
if ((eHTMLTag_li == aChild) ||
(eHTMLTag_ul == aChild) || // XXX this is temporary!!!
(eHTMLTag_ol == aChild) ||
(eHTMLTag_menu == aChild) ||
(eHTMLTag_dir == aChild)) {
return PR_FALSE;
}
result=PRBool(!strchr(gHeadingTags,aChild)); break;