>> we could introduce the implied optimisation that if there is no explicit 
>> 'amount' then the amount could be taken to be everything inside the 
>> 'money' that isn't the 'currency'.... That would simplify the markup in 
>> a large number of the cases, and I don't think would complicate the 
>> parsing *too* much.

I definitely like that optimization, assuming we can't get it any better and
it causes no unforeseen problems. 

But also please see my comments on "page-global."

-Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ciaran
McNulty
Sent: Thursday, October 19, 2006 12:18 PM
To: Microformats Discuss
Subject: Re: RE: title attribute and
abbreviatedclassnames(Was:[uf-discuss]Currency Quickpoll: Preliminary
results)

On 10/19/06, Brian Suda <[EMAIL PROTECTED]> wrote:
> I personally like this idea:
> <span class="money"><abbr class="currency" title="USD">$</abbr><span 
> class="amount">5.99</span></span>
>
> It has worked well for ADR, TEL, EMAIL in hCard and is also being 
> explored for UIDs.

I like that idea too, there've been a few similar variations suggested and
they seem the right general approach.

I think it would also make sense to add some rules that could compact the
markup in common cases.

For instance, we could introduce the implied optimisation that if there is
no explicit 'amount' then the amount could be taken to be everything inside
the 'money' that isn't the 'currency'.

i.e. <span class="money"><abbr class="currency"
title="USD">$</abbr>5.99</span> would be equivalent to your example above.

That would simplify the markup in a large number of the cases, and I don't
think would complicate the parsing *too* much.

-Ciaran McNulty
_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Reply via email to