Re: HTML is a declarative mark-up language

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 UTC