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

[whatwg] <time> authoring hints and API suggestion

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 26 Nov 2006 12:46:11 +0100
Message-ID: <op.tjmga9ii64w2qv@id-c0020.orange.nl>
It's quite clear how conformance checkers have to check the datatime=""  
attribute and the contents of the element, but what authors have to do is  
not made very clear in the document.

As for the APIs. Is there any reason you can't just reuse the ECMAScript  
Date object? (Other languages would have to provide their own API.) It's  
flexible enough to provide all the information you need. If you only  
provide a time as author there might be lots of other information in the  
Date object that isn't usable (represents "today", I suppose), but you'd  
know that or you could provide hints to that effect by making date, time  
and timezone booleans.

Anne van Kesteren
Received on Sunday, 26 November 2006 03:46:11 UTC

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