Clarification Requested: block tags vs. inline tags

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.

Thanks,
Charlie


-----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>
>
>Result:
>
><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>
></td>
>
>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
one.

Regards, Terry Teague

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