1. ms2ger
  2. DOM Core

Commits

annevk  committed 1c5fe3f

iterate over a static list of MutationObserver objects https://www.w3.org/Bugs/Public/show_bug.cgi?id=16392

  • Participants
  • Parent commits 865576f
  • Branches default

Comments (0)

Files changed (3)

File Overview.html

View file
 <!--end-logo-->
 </div>
  <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="editor's-draft-19-march-2012">
-  <span class="w3conly">Editor's Draft 19 March 2012</span>
+ <h2 class="no-num no-toc" id="editor's-draft-20-march-2012">
+  <span class="w3conly">Editor's Draft 20 March 2012</span>
   </h2>
 
  <dl>
 <p class="dontpublish copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
 To the extent possible under law, the editors have waived all copyright and
 related or neighboring rights to this work. In addition, as of
-19 March 2012, the editors have made this specification available
+20 March 2012, the editors have made this specification available
 under the
 <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
 which is available at
 objects, run these steps:
 
 <ol>
+ <li><p>Let <var title="">notify list</var> be a copy of
+ <i title="">scripting environment</i>'s list of <code><a href="#mutationobserver">MutationObserver</a></code>
+ objects whose <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a> is
+ non-empty.
+
  <li>
   <p>For each <code><a href="#mutationobserver">MutationObserver</a></code> object <var title="">mo</var>
-  in the <i title="">scripting environment</i>'s list of
-  <code><a href="#mutationobserver">MutationObserver</a></code> objects, run these substeps:
+  in <var title="">notify list</var>, run these substeps:
 
   <ol>
    <li><p>Let <var title="">queue</var> be a copy of <var title="">mo</var>'s
    <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>.
 
-   <li><p>If <var title="">queue</var> is empty, terminate these substeps. (And
-   run them for the next <code><a href="#mutationobserver">MutationObserver</a></code> object.)
-
    <li><p>Empty <var title="">mo</var>'s
    <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>.
 
    <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-callback-this-value">callback this value</a>.
   </ol>
 
- <li><p>If any <code><a href="#mutationobserver">MutationObserver</a></code> object in the
+ <li><p><p>If any <code><a href="#mutationobserver">MutationObserver</a></code> object in
  <i title="">scripting environment</i>'s list of <code><a href="#mutationobserver">MutationObserver</a></code>
- objects has a non-empty <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>
- at this point, run these steps again.
+ objects has a non-empty <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a> at
+ this point, run these steps again (indeed, all of them).
 </ol>
 
 <p class="note">The DOM standard does not define the

File Overview.src.html

View file
 objects, run these steps:
 
 <ol>
+ <li><p>Let <var title>notify list</var> be a copy of
+ <i title>scripting environment</i>'s list of <code>MutationObserver</code>
+ objects whose <span title=concept-MO-queue>record queue</span> is
+ non-empty.
+
  <li>
   <p>For each <code>MutationObserver</code> object <var title>mo</var>
-  in the <i title>scripting environment</i>'s list of
-  <code>MutationObserver</code> objects, run these substeps:
+  in <var title>notify list</var>, run these substeps:
 
   <ol>
    <li><p>Let <var title>queue</var> be a copy of <var title>mo</var>'s
    <span title=concept-MO-queue>record queue</span>.
 
-   <li><p>If <var title>queue</var> is empty, terminate these substeps. (And
-   run them for the next <code>MutationObserver</code> object.)
-
    <li><p>Empty <var title>mo</var>'s
    <span title=concept-MO-queue>record queue</span>.
 
    <span data-anolis-spec=webidl>callback this value</span>.
   </ol>
 
- <li><p>If any <code>MutationObserver</code> object in the
+ <li><p><p>If any <code>MutationObserver</code> object in
  <i title>scripting environment</i>'s list of <code>MutationObserver</code>
- objects has a non-empty <span title=concept-MO-queue>record queue</span>
- at this point, run these steps again.
+ objects has a non-empty <span title=concept-MO-queue>record queue</span> at
+ this point, run these steps again (indeed, all of them).
 </ol>
 
 <p class=note>The DOM standard does not define the

File dom-core.html

View file
 
 <div class="head">
 <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="free-editor's-draft-19-march-2012">
-  <span class="now3c">Free Editor's Draft 19 March 2012</span>
+ <h2 class="no-num no-toc" id="free-editor's-draft-20-march-2012">
+  <span class="now3c">Free Editor's Draft 20 March 2012</span>
  </h2>
 
  <dl>
 <p class="dontpublish copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
 To the extent possible under law, the editors have waived all copyright and
 related or neighboring rights to this work. In addition, as of
-19 March 2012, the editors have made this specification available
+20 March 2012, the editors have made this specification available
 under the
 <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
 which is available at
 objects, run these steps:
 
 <ol>
+ <li><p>Let <var title="">notify list</var> be a copy of
+ <i title="">scripting environment</i>'s list of <code><a href="#mutationobserver">MutationObserver</a></code>
+ objects whose <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a> is
+ non-empty.
+
  <li>
   <p>For each <code><a href="#mutationobserver">MutationObserver</a></code> object <var title="">mo</var>
-  in the <i title="">scripting environment</i>'s list of
-  <code><a href="#mutationobserver">MutationObserver</a></code> objects, run these substeps:
+  in <var title="">notify list</var>, run these substeps:
 
   <ol>
    <li><p>Let <var title="">queue</var> be a copy of <var title="">mo</var>'s
    <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>.
 
-   <li><p>If <var title="">queue</var> is empty, terminate these substeps. (And
-   run them for the next <code><a href="#mutationobserver">MutationObserver</a></code> object.)
-
    <li><p>Empty <var title="">mo</var>'s
    <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>.
 
    <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-callback-this-value">callback this value</a>.
   </ol>
 
- <li><p>If any <code><a href="#mutationobserver">MutationObserver</a></code> object in the
+ <li><p><p>If any <code><a href="#mutationobserver">MutationObserver</a></code> object in
  <i title="">scripting environment</i>'s list of <code><a href="#mutationobserver">MutationObserver</a></code>
- objects has a non-empty <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a>
- at this point, run these steps again.
+ objects has a non-empty <a href="#concept-mo-queue" title="concept-MO-queue">record queue</a> at
+ this point, run these steps again (indeed, all of them).
 </ol>
 
 <p class="note">The DOM standard does not define the