From 97d672283025193011ba09960b76834cee0b3bc5 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Thu, 16 Jul 1998 19:36:28 +0000 Subject: [PATCH] fixed frameset/frames --- htmlparser/src/CNavDTD.cpp | 4 +++- parser/htmlparser/src/CNavDTD.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/htmlparser/src/CNavDTD.cpp b/htmlparser/src/CNavDTD.cpp index defc1241944..2ad81159f60 100644 --- a/htmlparser/src/CNavDTD.cpp +++ b/htmlparser/src/CNavDTD.cpp @@ -1188,9 +1188,11 @@ PRBool CNavDTD::CanContain(PRInt32 aParent,PRInt32 aChild) { case eHTMLTag_frameset: { - static char okTags[]={eHTMLTag_frame,eHTMLTag_frameset,eHTMLTag_noframes,0}; + static char okTags[]={eHTMLTag_frame,eHTMLTag_frameset,eHTMLTag_noframes, + eHTMLTag_newline,eHTMLTag_whitespace,0}; result=PRBool(0!=strchr(okTags,aChild)); } + break; case eHTMLTag_h1: case eHTMLTag_h2: case eHTMLTag_h3: case eHTMLTag_h4: diff --git a/parser/htmlparser/src/CNavDTD.cpp b/parser/htmlparser/src/CNavDTD.cpp index defc1241944..2ad81159f60 100644 --- a/parser/htmlparser/src/CNavDTD.cpp +++ b/parser/htmlparser/src/CNavDTD.cpp @@ -1188,9 +1188,11 @@ PRBool CNavDTD::CanContain(PRInt32 aParent,PRInt32 aChild) { case eHTMLTag_frameset: { - static char okTags[]={eHTMLTag_frame,eHTMLTag_frameset,eHTMLTag_noframes,0}; + static char okTags[]={eHTMLTag_frame,eHTMLTag_frameset,eHTMLTag_noframes, + eHTMLTag_newline,eHTMLTag_whitespace,0}; result=PRBool(0!=strchr(okTags,aChild)); } + break; case eHTMLTag_h1: case eHTMLTag_h2: case eHTMLTag_h3: case eHTMLTag_h4: