[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
"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?
From: microformats-discuss-bounces at microformats.org
[mailto:microformats-discuss-bounces at microformats.org] On Behalf Of
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,
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.
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>
> 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
> 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
> geo property or to the adr property.
> What do you say?
> microformats-discuss mailing list
> microformats-discuss at microformats.org
microformats-discuss mailing list
microformats-discuss at microformats.org
More information about the microformats-discuss