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

[whatwg] [wf2] Leap seconds, dates in the past

From: Gervase Markham <gerv@mozilla.org>
Date: Fri, 18 Aug 2006 10:57:51 +0100
Message-ID: <44E58F1F.1090003@mozilla.org>
Henri Sivonen wrote:
> Could you elaborate on the use cases? Are there a lot of use cases on
> the Web now that force site author to hack awkward JavaScript widgets
> themselves? Can't they continue using those hacks for uses cases that
> are not mainstream like airline reservations?

Could we perhaps make the functions which do date calculation and
differencing pluggable? That is to say, we expose them on the DOM of the
widget, so you can do:

function gervsSubtractDates()
{
  ...
}


myWidget.subtractDates = gervsSubtractDates()

That way, you could have a calendar widget that defaulted to Gregorian
but could be hacked by specialist web pages to display other sorts of
calendar.

Note I haven't thought this through very well - it may be rubbish :-)

Gerv
Received on Friday, 18 August 2006 02:57:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC