[uf-discuss] hCard: is this use of geo + adr legal?

Costello, Roger L. costello at mitre.org
Mon Nov 20 04:25:26 PST 2006


Thanks Brian.  Let me try to state a general rule for the abbr design
pattern:

"The value of the title attribute is used as the value of only the
property (specified in the class attribute) that has no subproperties."

Is that a correct statement of the rule?

/Roger

-----Original Message-----
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
Brian Suda
Sent: Monday, November 20, 2006 7:11 AM
To: Microformats Discuss
Subject: Re: [uf-discuss] hCard: is this use of geo + adr legal?

I'd say that is legal, abit strange, but valid.

ADR itself has no value, only the sub-properties. Just like N & FN we
do class="fn n" all the time, and the FN is made-up of all the child
nodes, whereas the N is only the portions of it's sub-properties,
given-name, etc.

In your example, parsers do not actually look for any value of ADR
only children properties, so the abbr would be ignored in this case
when applied to the ADR.

-brian

On 11/20/06, Costello, Roger L. <costello at mitre.org> wrote:
> Hi Folks,
>
> Is this legal:
>
> <abbr class="geo adr" title="30.266935;-97.739267">
>     <span class="street-address">401 East 6th St.</span>
> </abbr>
>
> I think that it is not legal.
>
> My understanding of the abbr design pattern is that the value of the
> title attribute is to be used as the value of the property specified
in
> the class attribute.  In this case there are two properties (geo and
> adr) specified in the class attribute.  Thus, an hCard tool would not
> know whether the value of the title attribute should be applied to
the
> geo property or to the adr property.
>
> What do you say?
>
> /Roger
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>


-- 
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss at microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss



More information about the microformats-discuss mailing list