New bug with frameset?

Hello,

Excuse me, but I think that when fixing the problem of duplicating </body>, a new bug has been introduced:

With the following input file (attached as tidyTst2.ori)

<html>
<head>
<title>TidyTst2.htm Bug2 inserts body in noframes</title>
</head>
<frameset cols="170,*">
<frame name="menu" src="menu.htm" scrolling="no" marginheight="0"
marginwidth="0">
<frame name="data" src="data.htm">
<noframes>
FRAMESET is used.
</noframes>
</frameset>
</html>

when processed by tidy, produces the following errors (attached as tidyTst2.err)


Tidy (vers 14th April 1999) Parsing "tidyTst2.htm"
line 10 column 1 - Warning: inserting implicit <BODY>
line 11 column 1 - Warning: discarding unexpected </NOFRAMES>
line 12 column 1 - Warning: </FRAMESET> isn't allowed in <BODY> elements
line 15 column 2 - Warning: missing </NOFRAMES>
line 15 column 2 - Warning: missing </FRAMESET>

"tidyTst2.htm" appears to be HTML 4.0 Frameset
5 warnings/errors were found!

HTML & CSS specifications are available from W3C at "http://www.w3.org/"
To learn more about Tidy see "http://www.w3.org/People/Raggett/tidy/"
Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
Lobby your company to join W3C, see http://www.w3.org/Consortium



And updates the file to (attached as tidyTst2.htm)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>TidyTst2.htm Bug2 inserts body in noframes</title>
</head>
<frameset cols="170,*">
<frame name="menu" src="menu.htm" scrolling="no" marginheight="0"
marginwidth="0">
<frame name="data" src="data.htm">
<noframes>
<body>
FRAMESET is used.  
</body>
</noframes>
</frameset>
</html>

that introduces the lines with <body> and </body>, and gets some trouble.

Thanks for your effort to mantain this helpfull program. Best regars.

Francisco.

   

Received on Thursday, 29 April 1999 14:31:30 UTC