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.)<div>
<br></div><div>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.</div>
<div><br></div><div>You can read the earlier specs here:</div><div><br></div><div><a href="http://docs.sun.com/source/816-6408-10/">http://docs.sun.com/source/816-6408-10/</a></div><div><br></div><div>Here's the spec for setTimeout and setInterval:</div>
<div><br></div><div><a href="http://docs.sun.com/source/816-6408-10/window.htm#1203758">http://docs.sun.com/source/816-6408-10/window.htm#1203758</a></div><div><a href="http://docs.sun.com/source/816-6408-10/window.htm#1203669">http://docs.sun.com/source/816-6408-10/window.htm#1203669</a></div>
<div><br></div><div>Hope that helps!</div><div><br></div><div>Thanks,</div><div>Jerason Banes</div><div>(Interested Observer of WHATWG Activities)</div><div><br><br><div class="gmail_quote">On Wed, May 6, 2009 at 8:07 AM, Jon Barnett <span dir="ltr"><<a href="mailto:jonbarnett@gmail.com">jonbarnett@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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.<br>
<br>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?<br><br>I didn't find any discussion in the WHATWG archives.<br><br><a href="http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary646.html" target="_blank">http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary646.html</a><br clear="all">
<br>-- <br><font color="#888888">Jon Barnett<br>
</font></blockquote></div><br></div>