W3C home > Mailing lists > Public > spec-prod@w3.org > October to December 2011

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

From: Robin Berjon <robin@berjon.com>
Date: Mon, 3 Oct 2011 14:41:39 +0200
Cc: "spec-prod@w3.org Prod" <spec-prod@w3.org>
Message-Id: <2820F15D-D70E-4F50-B2CA-E23F2426FEE6@berjon.com>
To: David Carlisle <davidc@nag.co.uk>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:16 UTC