W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 1999

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

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Thu, 15 Apr 1999 13:56:28 -0400
To: <html-tidy@w3.org>
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

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"

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:46 UTC