W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Clarification Requested: block tags vs. inline tags

From: Reitzel, Charlie <CReitzel@arrakisplanet.com>
Date: Thu, 5 Jul 2001 15:18:09 -0400
Message-ID: <B5C79DDBC655D311B6BD0008C7E64D76013C16A4@exchange.arrakisplanet.com>
To: html-tidy@w3.org
Cc: tidy-develop@lists.sourceforge.net, "'Terry Teague'" <terry_teague@users.sourceforge.net>, georg@engist.inka.de
There is a current bug logged on tidy for this item.  But, I agree w/
Steven, Tidy is generating essentially correct HTML.   [ One problem w/ the
output is that the content of the link tag <a href='joebob.html'><img
src='joebob.gif'></a> is getting disassociated. ]

I'd like to get a better understanding of exactly why this is the right
output.  Is the problem that <div> is a block tag?  Would <span> be ok?  Do
I understand correctly that inline tags should never contain block tags?  If
nothing else, Tidy's diagnostic message could be clearer.


-----Original Message-----
From: Terry Teague [mailto:terry_teague@users.sourceforge.net]
Sent: Wednesday, July 04, 2001 10:42 PM
To: georg@engist.inka.de
Cc: tidy-develop@lists.sourceforge.net; html-tidy@w3.org
Subject: Re: [Tidy-dev] 2 bugs in Tidy (fwd)

At 1:10 PM +0100 7/4/01, Dave Raggett wrote:
>---------- Forwarded message ----------
>Date: Wed, 20 Jun 2001 23:47:08 +0200
>From: Georg Engist <georg@engist.inka.de>
>To: Dave Raggett <dsr@w3.org>
>Subject: 2 bugs in Tidy
>The structure <td><a><center></center></a></td> was destroyed:
><td><a></a><div></div></td> The hyper link in the anchor is
>no more associated with the content of the center area.
>The original html code:
>  <td width=150><a href="Kasse.htm">
>    <center>
>      <img src="../../../Grafiken/Geschaeft/01/klein/Kasse.jpg" nosave
>border=0 width="148" height="129" alt="Mausklick auf ein Bild
>vergr&ouml;&szlig;ert das Bild.">
>    </center>
>  </a></td>
><td width="150"><a href="Kasse.htm"></a>
><div class="c1"><img src="../../../Grafiken/Geschaeft/01/klein/Kasse.jpg"
>nosave="" border="0" width="148" height="129" alt="Mausklick auf ein Bild
>vergr&#246;&#223;ert das Bild."></div>
>The structure should be: <td><a><div></div></a></td>
>instead of <td><a></a><div></div></td>.

While I can reproduce your problem, I will let someone else comment on this

Regards, Terry Teague
Received on Thursday, 5 July 2001 15:17:14 UTC

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