title-trigger: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(→‎Advantages: simple!)
mNo edit summary
Line 9: Line 9:
==Proposal==
==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 the <code>title</code> attribute.  
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 <code>title</code> attribute.  


e.g. <nowiki><span class="dtstart ufusetitle" title="2007-08-16">16th August this year</span></nowiki>
e.g. <nowiki><span class="dtstart ufusetitle" title="2007-08-16">16th August this year</span></nowiki>
Line 15: Line 15:
===Conversion===
===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)
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==
==Class names==

Revision as of 23:45, 16 August 2007

Title trigger

An alternative to the abbr-design-pattern, to address that pattern's accessibility issues.

Contributors

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

Disadvantages

  • ???

Alternatives

See Also