Should -omit drop body tag properties?

Dear Folks,

One of the users of the Mac OS version of Tidy reported a problem with the
13 Jan 00 version, that I have also reproduced with the Windows/MS-DOS
version of Tidy (tidy13jan00.exe). It wasn't clear to me what the behaviour
should be. Perhaps the experts could advise.

Using a command line like :

tidy13jan00 -f liam.err -omit liam.htm > liam.out

with the following input :

Input:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     <meta name="generator" content="HTML Tidy, see www.w3.org">
     <title>
       Final Exam Questions for Turing
     </title>
     <body text="#000000" bgcolor="#ffffff" link="#ff161b" vlink="#8b1e26"
alink="#ff1116">
     <img src="/~cs120/cs120logo.gif" align="left" alt="[cs120 logo]">
     <center>
       <h1>
         Final Exam Questions for Turing
       </h1>
     </center>


produces the following output :

Output:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     <meta NAME="generator" CONTENT="HTML Tidy, see www.w3.org">
     <title>
       Final Exam Questions for Turing
     </title>
     <img SRC="/~cs120/cs120logo.gif" ALIGN="left" ALT="[cs120 logo]">
     <center>
       <h1>
          Final Exam Questions for Turing
       </h1>
     </center>


No warnings/errors are reported.

The user's question : "When I have Tidy set not to generate XHTML, it drops
the Body tag, resulting in the loss of the bgcolor, etc.". Although the
user was originally using a config file that had a "hide-endtags: yes"
option, we later reproduced the problem by specifying the "-omit" parameter
on the "command line", without using a config file.

So what should the behaviour be?

Regards, Terry

Received on Wednesday, 26 April 2000 04:16:34 UTC