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

Francisco Guardiola wrote:

> It seems there is an error in tidy ...

> <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>

> line 9 column 1 - Warning: discarding unexpected <BODY>
> line 13 column 1 - Warning: missing </NOFRAMES>

There is no error here in Tidy -- the error is in your HTML.  Get rid of the
BODY section.  (It might be wise to put a NOFRAMES section too -- where you now
have BODY -- so browsers that don't understand frames have something to look
at).

From http://www.w3.org/TR/REC-html40/frameset.dtd :

    This is the HTML 4.0 Frameset DTD, which should be
    used for documents with frames. This DTD is identical
    to the HTML 4.0 Transitional DTD except for the
    content model of the "HTML" element: in frameset
    documents, the "FRAMESET" element replaces the "BODY"
    element.

/Jelks

Received on Thursday, 15 April 1999 13:57:19 UTC