W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] Timestamps for <dialog>s

From: Karl Dubost <karl@w3.org>
Date: Thu, 21 Dec 2006 11:01:06 +0900
Message-ID: <A6E08440-ECFB-4C0E-8FDF-D3AF307CDC84@w3.org>

Le 21 d?c. 2006 ? 08:40, Simon Pieters a ?crit :
> Many transcripts on the Web include timestamps, in particular chat  
> logs. If chat Web applications are to use <dialog>, then those  
> apply aswell. I'm sure there are other examples too.
>
> I think <dialog>s should support a way to mark up timestamps. I'd  
> suggest <time> in the <dt>:
>
>   <dialog>
>    <dt><time>00:01</time> zcorpan
>    <dd>speaking of &lt;dialog>... can &lt;dt> include other stuff,  
> like time stamps?
>    <dt><time>00:01</time> Hixie
>    <dd>zcorpan: not currently
>   </dialog>

An attribute to qualify semantics content seems better  than adding  
yet another element which will be more difficult to implement in  
editing tools and more constraining.

Something like in the body of the document.
<meta property="cal:dtstart" content="20060508T1000-0500">May 8th at  
10am</meta>

or something like
<span property="dc:date" content="2006-12-04">mardi 4 d?cembre 2004</ 
span>

Microformats have (ab)used the title attribute to do so (Here no  
debate possible, Tantek thinks it is not an abuse. So no solutions on  
this side.)
<abbr class="dtend" title="20060712">11 juillet 2006</abbr>


If we qualify it as an element then more information is necessary,  
because this
	<time>04:01</time>
is not completely meaningful
	4h01?
	16h01?
	1st April
	4 January

so it means attribute anyway to qualify the content of the element.



These documents might give help for designing such a thing.

* Time Ontology in OWL
   http://www.w3.org/TR/owl-time/
* Date and Time Formats
   http://www.w3.org/TR/NOTE-datetime





-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Wednesday, 20 December 2006 18:01:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:51 UTC