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

Re: HTML is a declarative mark-up language

From: Leif Halvard Silli <lhs@malform.no>
Date: Sat, 31 Jan 2009 00:07:58 +0100
Message-ID: <4983884E.1050005@malform.no>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "Philip TAYLOR (Ret'd)" <P.Taylor@Rhul.Ac.Uk>, Robert J Burns <rob@robburns.com>, HTML WG <public-html@w3.org>

Boris Zbarsky 2009-01-30 22.49:

> 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>. 

But in HTML 5, the HTML 3.2 practise will be allowed again.

The draft allready contains one example of id inside anchor - 
however, that example also contains a href:

  <dd>I don't. <a href="#fn1" id="r1">[1]</a>
  <dt>

Today, when we have gotten different ways to highlight that number 
when you click on the backlink to that footnote-link, there is a 
purpose on having the id inside the anchor element here. But 
previously, when the only method to see that a link anchor 
destination was activated was, that that location moved to the top 
of the window, the author could just as well have placed the id in 
the <dd> element - in fact, that might be better for a sighted user.

While for a screen reader user it may be better go back to exactly 
the place where they were before they clicked - namely to the 
link. And also for sighted users, if the footnote was in the 
middle of a paragraph, this wouild certainly be preferred.
-- 
leif halvard silli
Received on Friday, 30 January 2009 23:08:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:28 GMT