List Info

Thread: RE: dfn design pattern (proposal)




RE: dfn design pattern (proposal)
country flaguser name
Australia
2007-08-20 20:24:25
On 8/20/07, Michael MD <mdagnspraci.com> wrote:
> quite easy I think...
> my own scripts that parse hcalendar don't really care
what tag is used
> for dtstart or dtend - they look for those class names
(and the title
> attribute)

>--- just a quick FYI, this would be an incorrect
implementation. The
>appearance or the absence of the TITLE attribute does
not control the
>parsing, it is the semantics of the property and the
element.

I guess I wasn't very clear. 
I was just commenting that the proposed dfn idea would be
easy to implement
at the parsing end and that some parsers may already handle
it with little
or no modification.

I was talking specifically about things like dtstart and
dtend in hcalendar.

My scripts do not require the title attribute to be present,
but if it is
there it will look at its contents for the value. 

><a href="http://example.com"
class="url" title="my
homepage">...</a>
>
>The value of URL is NOT controlled by the TITLE, but
instead the class URL
>and the 'A' element.

for url it does look in href rather than title for the
value. 






_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: dfn design pattern (proposal)
country flaguser name
United States
2007-08-20 20:57:21
Michael MD wrote:
>
>> --- just a quick FYI, this would be an incorrect
implementation. The
>> appearance or the absence of the TITLE attribute
does not control the
>> parsing, it is the semantics of the property and
the element.
>
> I guess I wasn't very clear.

No, you were clear.

> I was talking specifically about things like dtstart
and dtend in  
> hcalendar.
>
> My scripts do not require the title attribute to be
present, but if  
> it is
> there it will look at its contents for the value.

That is an incorrect implementation according to the current
spec. I  
hope that the current spec will be changed at some point (I
voice my  
disapproval of the abbr-design-pattern frequently), but
according to  
the current spec, this behavior should ONLY be present on
the abbr  
element.

James

_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )