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

Re: Link tag bug

From: Andreas J. Koenig <andreas.koenig@anima.de>
Date: Wed, 10 Apr 2002 09:34:02 +0200
To: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Cc: "Alexandre Roman" <roman.alex@online.fr>, <html-tidy@w3.org>
Message-ID: <m3n0wcdn2t.fsf@anima.de>
>>>>> On Wed, 10 Apr 2002 00:56:36 CET, Klaus Johannes Rusch <KlausRusch@atmedia.net> said:

  > In <000501c1df22$80222cd0$2c4e933e@dreamer>, "Alexandre Roman" <roman.alex@online.fr> writes:
  > Hello Alexandre,

 >> First of all I would like to thank you for your work about this project. I
 >> think HTML-Tidy should be part of every webmaster's toolbox.

  > thanks :-)

 >> However, I noticed that tidy sometimes removes the link tag when I use it in
 >> some of my web pages, where I put a link to my stylesheet. Tidy give me a
 >> warning titled "Warning trimming link" or something...

  > Hmmmm, it should not do that, can you possibly provide a sample file where this
  > happened, only some elements with neither content nor attributes should get 
  > trimmed, for example <pre></pre> but never a link.

I have an example with several elements trimmed. None of them should
have been trimmed, unless I'm missing something.

 <tr valign="top">
  <td><a href="http://www.aaa.com"><img
    width="99" height="49" border="0"
    alt="AAA" /></a></td>
  <td><p>AAA<br />
   <a href="/query">BBB</a><br />
   <td colspan="2"><hr size="1" noshade="noshade" /></td>

I call tidy as

    tidy -utf8 -asxhtml -indent t.html >| t.tidy.html

I get among other messages:

line 1 column 1 - Warning: <table> lacks "summary" attribute
line 1 column 1 - Warning: inserting missing 'title' element
line 3 column 36 - Warning: trimming empty <img>
line 7 column 14 - Warning: trimming empty <br>
line 8 column 28 - Warning: trimming empty <br>
line 12 column 20 - Warning: trimming empty <hr>

Hope that helps,
Received on Wednesday, 10 April 2002 03:34:23 UTC

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