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

[whatwg] Timers

From: Jerason Banes <jbanes@gmail.com>
Date: Wed, 6 May 2009 11:03:19 -0500
Message-ID: <82c3f5040905060903q4e9eb647k3efdea3e978c54fd@mail.gmail.com>
SetTimeout and setInterval are from the original Javascript specification,
pre-ECMA. That specification is not officially standardized anywhere, but it
is supported by all web browsers and most implementations of the Javascript
language. (Including ActionScript.)
The pre-ECMA specs are often known as the "DOM-0" APIs. Since they have
never been standardized before, it makes sense for HTML5 to finally spec the
non-deprecated APIs in an attempt to provide a consistent environment across
browsers. Especially when recent events have proven that there are companies
who like to implement the letter of the standard, but not the spirit.

You can read the earlier specs here:

http://docs.sun.com/source/816-6408-10/

Here's the spec for setTimeout and setInterval:

http://docs.sun.com/source/816-6408-10/window.htm#1203758
http://docs.sun.com/source/816-6408-10/window.htm#1203669

Hope that helps!

Thanks,
Jerason Banes
(Interested Observer of WHATWG Activities)


On Wed, May 6, 2009 at 8:07 AM, Jon Barnett <jonbarnett at gmail.com> wrote:

> Do setTimeout and setInterval belong in HTML 5?  They're not really DOM
> related.  They're supported by ActionScript, which doesn't have a DOM. AS
> supports the same signatures that HTML 5 does (plus another one).  HTML 5
> already says they're specific to Javascript/ECMAScript, so there's no need
> for other DOM implementations to support them.
>
> I searched the ES5 final draft and didn't see a reference to them
> anywhere.  Have they been considered for ECMAScript 5 or any version?
>
> I didn't find any discussion in the WHATWG archives.
>
>
> http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary646.html
>
> --
> Jon Barnett
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090506/d73f65a3/attachment.htm>
Received on Wednesday, 6 May 2009 09:03:19 UTC

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