Re: HTML is a declarative mark-up language

Boris Zbarsky wrote:

 > Well....  This markup:
 >
 >   <a id="mytable">
 >     <table><tr><td></td></tr></table>
 >   </a>
 >
 > is not valid HTML 4 (or HTML 3.2, for that matter).  <a> is not allowed
 > to contain <table>.

Agreed, but there is a well-known workaround for that :

       <a id="mytable">
         <ins>
           <table><tr><td></td></tr></table>
         </ins>
       </a>

which is valid, even if semantically very dubious.  But as you
correctly observed, I was not complaining that DW will not
wrap <A> tags around a <TABLE> element -- I am glad that it
does not !  Rather, that it will not wrap <A> tags around
anything, which it most certainly should.

Philip TAYLOR

Received on Friday, 30 January 2009 22:13:13 UTC