W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Few Question about HTML Tidy

From: Hiroyuki Okamoto - 岡本 浩之 <hokamoto@mse.mei.co.jp>
Date: Sun, 16 Dec 2001 00:10:26 +0900
Message-ID: <3C1B67E2.8090803@mse.mei.co.jp>
To: html-tidy <html-tidy@w3.org>
Hello, my name is Hiroyuki Okamoto.

I have a few questions about HTML Tidy.
They are illegal cases, however content becomes strange after Tidying,
so I report them.


(1) When I write the following content,

<OBJECT>
  <FONT>
    TEST
  </FONT>
</OBJECT>

   HTML Tidy moves the OBJECT element into the HEAD element like below.

<HTML>
  <HEAD>
    <OBJECT>
      <FONT>
        TEST
      </FONT>
    </OBJECT>
    <TITLE></TITLE>
  </HEAD>
</HTML>

   Should OBJECT element be inside the BODY element like below ?

<HTML>
  <HEAD>
    <TITLE></TITLE>
  </HEAD>
  <BODY>
    <OBJECT>
      <FONT>
        TEST
      </FONT>
    </OBJECT>
  </BODY>
</HTML>

  What should I do ?


(2) When I write the following content,

<BODY>
  <TITLE>
    TEST2
  </TITLE>
</BODY>

   HTML Tidy makes a new TITLE element like below.

<HTML>
  <HEAD>
    <TITLE></TITLE>
    <TITLE>
      TEST2
    </TITLE>
  </HEAD>
  <BODY></BODY>
</HTML>

   Title element should be only one in HEAD element.
   What should I do ?


(3) When I write the following content,

<FONT>
  <SELECT>
     TEST3
  </SELECT>
</FONT>

   HTML Tidy deletes the text element in the SELECT element like below.

<HTML>
  <HEAD>
    <TITLE></TITLE>
  </HEAD>
  <BODY>
    <FONT>
      <SELECT></SELECT>
    </FONT>
  </BODY>
</HTML>

   I think deleting the text element directly inside the SELECT element is correct.
   However, if no element is inside the SELECT element, I think HTML Tidy should
   delete the SELECT element, too.
   Am I wrong ?


(4) When I write the following content,

<BODY>
  <BR>
  </BR>
</BODY>

   HTML Tidy makes 2 BR elements like below.

<HTML>
  <HEAD><TITLE></TITLE></HEAD>
  <BODY>
    <BR/>
    <BR/>
  </BODY>
</HTML>

   I think HTML Tidy should delete </BR> end tag. 



And When will HTML Tidy's new version be released ?


Best Regards.

----------------
Hiroyuki Okamoto
hokamoto@mse.mei.co.jp
Received on Saturday, 15 December 2001 10:08:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:47 GMT