W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] Feeedback on <dfn>, <abbr>, and other elements related to cross-references

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 21 Apr 2008 00:23:19 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0804210022390.25764@hixie.dreamhostps.com>
On Mon, 21 Apr 2008, Lachlan Hunt wrote:
> Ian Hickson wrote:
> > On Fri, 14 Oct 2005, Lachlan Hunt wrote:
> > > Just a few issues regarding the use of abbr and dfn elements.
> > > 
> > > *The abbr Element's title Attribute*
> > > 
> > > I think the title attribute should also be allowed to be omitted from the
> > > abbr element if there is another abbr element with a title attribute for
> > > the same abbreviation in the document.  This would be very useful for
> > > cases where the same abbreviation is used multiple times, but is not
> > > defined (using <dfn>) anywhere in the document.
> > 
> > Why would that instance not use <dfn>?
> 
> It's quite common to use abbreviations without defining what they mean 
> the first time they're used in each document.
> 
> So in a document that discusses, for example, something about HTML and 
> marks up the first instance as <abbr title="Hypertext Markup 
> Language">HTML</abbr>, but doesn't actually define what HTML is, it 
> wouldn't be appropriate to use <dfn>.  The idea was that subsequent 
> instances of of the abbreviation would be marked up without the title 
> attribute, but that would only be useful with the cross-referencing 
> feature.

Sure. In such cases the first case would say <abbr title="Hypertext Markup 
Language">HTML</abbr>, and the others would just be marked up as "HTML", 
with no markup.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 20 April 2008 17:23:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:40 UTC