Vaguely clarify event loop mechanics for web workers. (whatwg r3222)

Vaguely clarify event loop mechanics for web workers. (whatwg r3222)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2371&r2=1.2372&f=h
http://html5.org/tools/web-apps-tracker?from=3221&to=3222
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2371
retrieving revision 1.2372
diff -u -d -r1.2371 -r1.2372
--- Overview.html 10 Jun 2009 23:46:35 -0000 1.2371
+++ Overview.html 11 Jun 2009 21:40:01 -0000 1.2372
@@ -152,7 +152,7 @@
 <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
 <!--ZZZ:-->
 <!--<h2 class="no-num no-toc">W3C Working Draft 23 April 2009</h2>-->
- <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 10 June 2009</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 11 June 2009</h2>
 <!--:ZZZ-->
 <dl><!-- ZZZ: update the month/day (twice), (un)comment out
 <dt>This Version:</dt>
@@ -245,7 +245,7 @@
 track.
 <!--ZZZ:-->
 <!--This specification is the 23 April 2009 Working Draft.-->
- This specification is the 10 June 2009 Editor's Draft.
+ This specification is the 11 June 2009 Editor's Draft.
 <!--:ZZZ-->
 </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
 identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -42752,17 +42752,7 @@
 manipulation, e.g. when that element is <a href="#insert-an-element-into-a-document" title="insert an
 element into a document">inserted into the document</a>.</p>
 
- </dl><p>Each <a href="#concept-task" title="concept-task">task</a> is associated with a
- <code>Document</code>; if the task was queued in the context of an
- element, then it is the element's <code>Document</code>; if the task
- was queued in the context of a <a href="#browsing-context">browsing context</a>, then
- it is the <a href="#browsing-context">browsing context</a>'s <a href="#active-document">active
- document</a> at the time the task was queued; if the task was
- queued by or for a <a href="#concept-script" title="concept-script">script</a> then
- the document is the <a href="#script-s-browsing-context">script's browsing context</a>'s
- <a href="#active-document">active document</a> at the time the task was queued.</p>
-
- <p>When a user agent is to <dfn id="queue-a-task">queue a task</dfn>, it must add the
+ </dl><p>When a user agent is to <dfn id="queue-a-task">queue a task</dfn>, it must add the
 given task to one of the <a href="#task-queue" title="task queue">task queues</a>
 of the relevant <a href="#event-loop">event loop</a>. All the tasks from one
 particular <dfn id="task-source">task source</dfn> (e.g. the callbacks generated by
@@ -42780,6 +42770,17 @@
 processing events from any one <a href="#task-source">task source</a> out of
 order.</p>
 
+ <p>Each <a href="#concept-task" title="concept-task">task</a> that is <a href="#queue-a-task" title="queue a task">queued</a> onto a <a href="#task-queue">task queue</a> of
+ an <a href="#event-loop">event loop</a> defined by this specification is
+ associated with a <code>Document</code>; if the task was queued in
+ the context of an element, then it is the element's
+ <code>Document</code>; if the task was queued in the context of a
+ <a href="#browsing-context">browsing context</a>, then it is the <a href="#browsing-context">browsing
+ context</a>'s <a href="#active-document">active document</a> at the time the task
+ was queued; if the task was queued by or for a <a href="#concept-script" title="concept-script">script</a> then the document is the
+ <a href="#script-s-browsing-context">script's browsing context</a>'s <a href="#active-document">active
+ document</a> at the time the task was queued.</p>
+
 <p>A user agent is required to have one <dfn id="storage-mutex">storage
 mutex</dfn>. This mutex is used to control access to shared state
 like cookies. At any one point, the <a href="#storage-mutex">storage mutex</a> is
@@ -42791,6 +42792,8 @@
 a <a href="#concept-script" title="concept-script">script</a>, the user agent must
 release the <a href="#storage-mutex">storage mutex</a>.</p>
 
+ <p class="note">Other specifications can define other <a href="#event-loop" title="event loop">event loops</a>; in particular, the Web
+ Workers specification does so.</p>
 
 
 <h5 id="processing-model-2"><span class="secno">6.5.4.2 </span>Processing model</h5>

Received on Thursday, 11 June 2009 21:40:56 UTC

AltStyle によって変換されたページ (->オリジナル) /