W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

[whatwg] Use cases for the time element

From: Jeremy Keith <jeremy@adactio.com>
Date: Thu, 26 Nov 2009 16:50:39 +0000
Message-ID: <7AFE3B8F-C3F0-4683-A18F-1BD72161E357@adactio.com>
In the section for the time element, the spec states:

"This element is intended as a way to encode modern dates and times in  
a machine-readable way so that user agents can offer to add them to  
the user's calendar."


It seems very, very restrictive to dictate one single use case for an  
element. Specifying an example use case, I could understand, but a  
single use case? Isn't that kind of like dictating a single use for an  
API before it has even been released?

Elsewhere in the spec, this usage is contravened. In the section on  
"common idioms without dedicated elements", this example is given:

"The following extract shows how an IM conversation log could be  
marked up.
<p> <time>14:22</time> <b>egof</b> I'm not that nerdy, I've only seen  
30% of the star trek episodes"


I think that's a perfectly reasonable use of the time element* but I  
find it hard to imagine how a user could add a chat message to their  


Jeremy Keith

a d a c t i o


* The example is, however, a terrible use of the b element. The cite  
element is more appropriate.
Received on Thursday, 26 November 2009 08:50:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC