[uf-new] Finishing Currency (was: Recipe)
Andy Mabbett
andy at pigsonthewing.org.uk
Fri Sep 28 09:15:43 PDT 2007
In message <46FD0D9D.1070800 at digitalbazaar.com>, Manu Sporny
<msporny at digitalbazaar.com> writes
>There only seems to be one issue with the current proposal:
>
>http://microformats.org/wiki/currency-issues#Problem
That's the issue of
10 cents
having no whole-currency identifier. Some of the solutions there,
including my own, are sub-optimal, not least because their abuse of
"abbr" causes accessibility problems.
Since my last post on the matter, I have given this extra thought.
We could use:
<abbr class="hmoney" title="USD 0.1">10 cents</abbr>
which has the problem that "GBP" is, itself, an abbreviation.
This could be expanded thus:
<abbr title="10 cents">
<abbr class="hmoney" title="USD 0.1">10 cents</abbr>
</abbr>
though I have yet to ascertain the accessibility of that model.
My preference would be to use the previously-described
"[[title-trigger]] solution:
<span class="hmoney title-trigger" title="USD 0.1">
10 cents
</span>
In the latter, the rule for the title is that it MUST contain only an
ISO 4217 currency code and a numeric value, (in either order) separated
by a space.
--
Andy Mabbett
More information about the microformats-new
mailing list