[uf-dev] datetime attribute

Toby A Inkster mail at tobyinkster.co.uk
Sun Jul 20 13:08:14 PDT 2008


The next release of Cognition (and the current iteration of the web  
service) supports parsing datetime values from HTML's datetime  
attribute. This allows for:

   <time class="dtstart" datetime="2008-07-21">Monday</time>

and also:

   <span class="dtstart">
     <time class="value" datetime="2008-07-21">Monday</time> at
     <time class="value" datetime="21:00:00">9pm</time>
     <time class="value" datetime="+0100">(UK)</time>
   </span>

in HTML 5, but it also allows for some rather cool stuff with <ins>  
in HTML 4, such as my recent update to this page:

http://examples.tobyinkster.co.uk/hcard
("Cognify" links in the footer to convert to different formats.)

What do people think? I'll document my parsing technique soonish.

-- 
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>





More information about the microformats-dev mailing list