RE: [Tidy-dev] Clarification Requested: block tags vs. inline tags

You are correct in that inlines can't include block level
elements such as center or div in their content.

Regards,

-- Dave Raggett <dave.raggett@openwave.com> or <dsr@w3.org>
W3C Visiting Fellow, see http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 771 213 7629 (mobile)

> -----Original Message-----
> From: tidy-develop-admin@lists.sourceforge.net
> [mailto:tidy-develop-admin@lists.sourceforge.net]On Behalf Of Reitzel,
> Charlie
> Sent: Thursday, July 05, 2001 8:18 PM
> To: html-tidy@w3.org
> Cc: tidy-develop@lists.sourceforge.net; 'Terry Teague';
> georg@engist.inka.de
> Subject: [Tidy-dev] 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
>
>
> _______________________________________________
> Tidy-develop mailing list
> Tidy-develop@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/tidy-develop
>

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