[uf-discuss] Re: An Inconvenient hCard

Ben Ward lists at ben-ward.co.uk
Tue May 26 13:50:54 PDT 2009


On 24 May 2009, at 07:19, Julian Rickards wrote:

>> You have:
>> <div class="tel"><span class="type"><abbr title="work">Numéro de
>> téléphone</abbr></span>: <span class="value">(705)
>> 123-4567</span></div>
>>
>> The TYPE is still "Numéro de téléphone" because the class="type" is  
>> on
>> the span, if you move the class="type" to the ABBR then it would pull
>> the @title value of "work". It is also possible to use the new
>> value-title pattern instead.
>>
>> If you are still having problems, let me know.
>
> On Monday, I will give this a try and let you know how it works:
> thanks for the extra effort to help.

So, using the new internationalisation friendly value-class pattern,  
what you want here is either:

> <div class="tel">
>   <span class="type">
>     <span class="value-title" title="work"> </span>
>     Numéro de téléphone
>   </span>:
>   <span class="value">(705) 123-4567</span>
> </div>

— this will have the en-us ‘work’ invisible

Or

> <div class="tel">
>   <span class="type">
>     <span class="value-title" title="work">Numéro de téléphone </span>
>   </span>:
>   <span class="value">(705) 123-4567</span>
> </div>

— This  keeps the ‘work’ value as a tool-top, should you want that for  
any reason.

B


More information about the microformats-discuss mailing list