Comments on Timers

Hi,

Some comments on  
http://www.whatwg.org/specs/web-apps/current-work/multipage/section-timers.html  
 from a collegue:

* The specification should put non-zero contraint on the return value of  
the methods. Scripts use if(handle) to check if something was returned.

* It should mention that UAs need to have a lower limit, probably 10ms,  
for Web compatibility. If that's not feasible it should at least allow a  
lower limit.

* It should mention that the timeout given can't always be honoured  
exactly (apart from the lower limit), because of clock resolution, CPU  
load, other JS threads, etc.

* It should say whether the arguments... should be passed at the timeout  
instantiation or in their current state. Consider the following example  
for instance:

   baz = 1;
   setTimeout(foo,10,baz);
   baz = 5;

Kind regards,


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 10 March 2008 19:10:41 UTC