Re: Use of <a name="xxx" id="xxx"> in text/html specs

On Oct 3, 2011, at 14:36 , David Carlisle wrote:
> On 03/10/2011 13:29, Robin Berjon wrote:
>> Notably, I'm not sure what the value of<h1><a id='foo'/>Foo</h1>  is over<h1 id='foo'>Foo</h1>
> 
> Netscape 3 support perhaps (which is why it uses <a name=xx id=xxx> in case id isn't supported...

Weeeeeell, I'm all for extending support widely and all, but Netscape 3 seems like it's overdoing it just a tiny little bit :)

> >  (or perhaps even more semantically: with the id on the containing<div>) is,
> 
> For headings it would be fairly easy to change the stylesheets to do that, more problematic is xmlspec's support of inline definitions where you can mark a phrase appearing inline mid-paragraph as a definition so it gets an empty <a id="xxx> to which you can link elsewhere in the document.

My XMLSpec is very, very rusty, but I'm assuming that this generates a <dfn>? If so, it's a simple matter of slapping an id onto that. You can link to pretty much anything with an id.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Monday, 3 October 2011 12:42:09 UTC