Skip to content

Commit 15d0f56

Browse files
committed
Changed the sidenote explaining where timeouts belong to with some explanation.
1 parent 143bda7 commit 15d0f56

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/en/other/timeouts.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
Since JavaScript is asynchronous, it is possible to schedule the execution of a
44
function using the `setTimeout` and `setInterval` functions.
55

6-
> **Note:** Timeouts are **not** part of the ECMAScript Standard. They are
7-
> implemented as part of the [DOM][1].
6+
> **Note:** Timeouts are **not** part of the ECMAScript standard. They were
7+
> implemented in [BOM, or DOM Level 0][1], which are never defined nor
8+
> documented formally. No recommended specification has been published so far,
9+
> however, they are currently being standardized by [HTML5][2]. Due to this
10+
> nature, the implementation may vary from browsers and engines.
811
912
function foo() {}
1013
var id = setTimeout(foo, 1000); // returns a Number > 0
@@ -163,5 +166,5 @@ be passed that then takes care of the actual call.
163166
Furthermore, the use of `setInterval` should be avoided because its scheduler is not
164167
blocked by executing JavaScript.
165168

166-
[1]: http://en.wikipedia.org/wiki/Document_Object_Model "Document Object Model"
167-
169+
[1]: http://www.nczonline.net/blog/2009/09/29/web-definitions-dom-ajax-and-more/ "Web definitions: DOM, Ajax, and more"
170+
[2]: http://www.w3.org/TR/2014/WD-html5-20140617/webappapis.html#timers "6 Web application APIs - HTML5"

0 commit comments

Comments
 (0)