|
List Info
Thread: hCard: is this use of geo + adr legal?
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-20 11:25:41 |
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 microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-20 12:11:07 |
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 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 microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-20 12:25:26 |
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 microformats.org
[mailto:microformats-discuss-bounces 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 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 microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-20 15:47:29 |
On 11/20/06, Costello, Roger L. <costello mitre.org> wrote:
> 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?
--- not exactly, because GEO has sub-properties, but there
is a
"special" instance where GEO can be in an ABBR
element without
sub-properties. At the moment it is the only one, but it
COULD exist
in the future other formats that work in a similar manner.
Otherwise,
your statement would be how i interpret the current parsing
rules.
-brian
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-21 12:00:01 |
Hey Brian, you said that this was a "strange" way
of marking up the
information:
> <abbr class="geo adr"
title="30.266935;-97.739267">
> <span class="street-address">401
East 6th St.</span>
> </abbr>
What is a better way of marking up the information? Is this
a better
way:
<abbr class="geo"
title="30.266935;-97.739267">
<span class="adr street-address">401
East 6th St.</span>
</abbr>
Notice that I moved "adr" from abbr to span.
/Roger
-----Original Message-----
From: microformats-discuss-bounces microformats.org
[mailto:microformats-discuss-bounces 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 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 microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| hCard: is this use of geo + adr legal? |

|
2006-11-22 11:50:00 |
On 11/21/06, Costello, Roger L. <costello mitre.org> wrote:
> Hey Brian, you said that this was a "strange"
way of marking up the
> information:
>
> > <abbr class="geo adr"
title="30.266935;-97.739267">
> > <span
class="street-address">401 East 6th
St.</span>
> > </abbr>
>
> What is a better way of marking up the information? Is
this a better
> way:
--- i don't normally associate ABBR elements with multiple
lines of
text, it isn't wrong, but feel strange - partly because most
people
use DIV to create block-level elements for country-name or
street-address instead of using BR, but an ABBR element can
only take
inline-elements. It isn't incorrect, but doesn't feel right
to me, but
that's just personal preference.
> <abbr class="geo"
title="30.266935;-97.739267">
> <span class="adr
street-address">401 East 6th St.</span>
> </abbr>
>
> Notice that I moved "adr" from abbr to span.
--- that won't work, because the street-adress needs to be
nested
inside a class="adr", so you would need to do
something like:
<abbr class="geo"
title="30.266935;-97.739267">
<span class="adr"><span
class=street-address">401 East 6th
St.</span></span>
</abbr>
what feels "strange" to me is the ABBR around
several elements, not
where the placement of the ADR is. Why not try:
<div class="adr">
<abbr class="geo"
title="30.266935;-97.739267"><span
class=street-address">401 East 6th
St.</span></abbr>
...
</div>
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
[1-6]
|
|