W3C home > Mailing lists > Public > public-html@w3.org > January 2009

Re: HTML is a declarative mark-up language

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 30 Jan 2009 16:49:02 -0500
Message-ID: <498375CE.7090908@mit.edu>
To: "Philip TAYLOR (Ret'd)" <P.Taylor@Rhul.Ac.Uk>
CC: Robert J Burns <rob@robburns.com>, HTML WG <public-html@w3.org>

Philip TAYLOR (Ret'd) wrote:
> Boris Zbarsky wrote:
>>   <a id="mytable"></a>
>>   <table><tr><td>
>>     This is an important table that people should link to
>>   </td></tr></table>
> There is another reason : Dreamweaver, in its infinite
> wisdom, does not allow <A NAME="..."> ... </A> to be
> wrapped around existing content

Well....  This markup:

   <a id="mytable">

is not valid HTML 4 (or HTML 3.2, for that matter).  <a> is not allowed 
to contain <table>.  I gather that DreamWeaver has the behavior your 
describe even in cases when the existing content is allowed inside <a>, 
but I did pick the example I picked pretty carefully: what I wrote is 
actually best practice HTML 3.2 if you want to link to a table and 
author conformant HTML.  It's the only way to author conformant HTML 4 
in that situation without linking to an id on the table directly.

Received on Friday, 30 January 2009 21:51:05 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:41 UTC