Tidy seems to duplicate </BODY> instead of removing it

Hello,

It seems there is an error in tidy, with the folowing input file (attached as tidyTst1.ori):

<HTML>
<HEAD>
<TITLE>  TidyTst1.htm Test /BODY not removed, but duplicated </TITLE>
</HEAD>
<frameset cols=170,*>
<frame name=menu src=menu.htm scrolling=no marginheight=0 marginwidth=0>
<frame name=data src=data.htm >
</frameset>
<BODY bgcolor="#ffffff">
     FRAMESET is used.
</BODY>
</HTML>

executing:> tidy tidyTst1.htm (or tidy -f tidyTst1.err -m tidyTst1.htm)

the following errors are issued (attached as tidyTst1.err):

"
Tidy (vers 12th April 1999) Parsing "tidyTst1.htm"
line 9 column 1 - Warning: discarding unexpected <BODY>
line 13 column 1 - Warning: missing </NOFRAMES>

"tidyTst1.htm" appears to be HTML 4.0 Frameset
2 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 produces the following output (attached as tidyTst1.htm):


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<title>TidyTst1.htm Test /BODY not removed, but duplicated</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.
</body>
</body>
</noframes>
</frameset>
</html>

that has </body> duplicated instead of removed.
This also happens with the previos version.

Best regards.

   

Received on Thursday, 15 April 1999 04:27:30 UTC