[uf-discuss] ISO Dates and Durations using Style

Martin McEvoy martin at weborganics.co.uk
Sun Sep 28 08:58:52 PDT 2008

Hello Benjamin

Benjamin Hawkes-Lewis wrote:
> 1. Sticking a hyphen at the beginning of the property name is not all 
> there is to it. The CSS 2.1 specification only defines error-handling 
> for (unrecognized) vendor-specific properties only work when their 
> names and values can be parsed with the CSS core grammar. That might 
> well be possible with "1968-01-04"; I haven't tried to evaluate it. 
> Alternately, you might need to put it in a quoted string (like with 
> the value of the "content" property).

I hadn't thought of that something like this maybe...

<span class="bday" style="content:'1968-01-04';">4th Jan, 1968</span>

It doesn't produce any errors with the validator, but is it still a "hack"

Best Wishes

Martin McEvoy

More information about the microformats-discuss mailing list