title-trigger
Title trigger
An alternative to the abbr-design-pattern, to address that pattern's accessibility issues.
Contributors
- Author: Andy Mabbett
- Original idea: Patrick Lauke
Proposal
Use a class name; say "ufusetitle" (for "microformat, use title") or something equally unlikely to otherwise occur in the wild, on any element, to trigger the use of that element's title
attribute. e.g.
<span class="dtstart ufusetitle" title="2007-08-16" > 16th August this year </span>
Conversion
All existing and new microformats should use this pattern; abbr-design-pattern should be deprecated, but parsers should still be required to recognise it on legacy pages (perhaps for a period of, say, three years)
Class names
Other potential class names include:
- hsource
- hvalue
- uftitletrigger
- ...
Advantages
- Simple
- Works on any element
- Usable on CMSs (e.g. MediaWiki) which do not allow use of
abbr
- Easy to learn
- Ease of authoring
- Easy for parsers to adapt
Issues
Semantics
No known or perceived issues.
Parsers
Existing microformats parsers (such as the Operator extension to Firefox) would need to be updated to handle this proposed alternative to the abbr design pattern. However, this is true of any proposed alternatives.
Complexity
No known or perceived issues.
Assistive Technology
The proposed solutioneen readers don't treat title
as a special case on elements other than abbr
or acronym
(or perhaps a
and img
, which may need to be excluded from the solution). Is this actually the case? Please create a page for assistive technology title trigger results and add the results of testing there.
Usage in the wild
This design pattern is built on the assumption that the eventually- chosen is not widely used, where it used. Please document examples and references here: