Skip to content

Commit

Permalink
Give each mutation observer a unique record.
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 3, 2012
1 parent cfc94f3 commit b5d0565
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
50 changes: 25 additions & 25 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -2503,31 +2503,6 @@ <h4>Queuing a mutation record</h4>
<var title>nextSibling</var>, run these steps:

<ol>
<li><p>Let <var title>record</var> be a new <code>MutationRecord</code>
object with its <code title=dom-MutationRecord-type>type</code> set to
<var title>type</var> and
<code title=dom-MutationRecord-target>target</code> set to
<var title>target</var>.

<li><p>If <var title>name</var> and <var title>namespace</var> are given,
set <var title>record</var>'s
<code title=dom-MutationRecord-attributeName>attributeName</code> to
<var title>name</var>, and <var title>record</var>'s
<code title=dom-MutationRecord-attributeNamespace>attributeNamespace</code>
to <var title>namespace</var>.

<li><p>If <var title>addedNodes</var>, <var title>removedNodes</var>,
<var title>previousSibling</var>, and <var title>nextSibling</var> are
given, set <var title>record</var>'s
<code title=dom-MutationRecord-addedNodes>addedNodes</code> to
<var title>addedNodes</var>, <var title>record</var>'s
<code title=dom-MutationRecord-removedNodes>removedNodes</code> to
<var title>removedNodes</var>, <var title>record</var>'s
<code title=dom-MutationRecord-previousSibling>previousSibling</code> to
<var title>previousSibling</var>, and <var title>record</var>'s
<code title=dom-MutationRecord-nextSibling>nextSibling</code> to
<var title>nextSibling</var>.

<li><p>Let <var title>interested observers</var> be an initially empty set
of <code>MutationObserver</code> objects optionally paired with a string.

Expand Down Expand Up @@ -2583,6 +2558,31 @@ <h4>Queuing a mutation record</h4>
<var title>interested observers</var>:

<ol>
<li><p>Let <var title>record</var> be a new <code>MutationRecord</code>
object with its <code title=dom-MutationRecord-type>type</code> set to
<var title>type</var> and
<code title=dom-MutationRecord-target>target</code> set to
<var title>target</var>.

<li><p>If <var title>name</var> and <var title>namespace</var> are given,
set <var title>record</var>'s
<code title=dom-MutationRecord-attributeName>attributeName</code> to
<var title>name</var>, and <var title>record</var>'s
<code title=dom-MutationRecord-attributeNamespace>attributeNamespace</code>
to <var title>namespace</var>.

<li><p>If <var title>addedNodes</var>, <var title>removedNodes</var>,
<var title>previousSibling</var>, and <var title>nextSibling</var> are
given, set <var title>record</var>'s
<code title=dom-MutationRecord-addedNodes>addedNodes</code> to
<var title>addedNodes</var>, <var title>record</var>'s
<code title=dom-MutationRecord-removedNodes>removedNodes</code> to
<var title>removedNodes</var>, <var title>record</var>'s
<code title=dom-MutationRecord-previousSibling>previousSibling</code> to
<var title>previousSibling</var>, and <var title>record</var>'s
<code title=dom-MutationRecord-nextSibling>nextSibling</code> to
<var title>nextSibling</var>.

<li><p>If <var title>observer</var> has a paired string,
set <var title>record</var>'s <code title>oldValue</code> to
<var title>observer</var>'s paired string.
Expand Down
54 changes: 27 additions & 27 deletions dom-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-dom.svg" width="100"></a></p>
<h1>DOM</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-29-november-2012">Living Standard — Last Updated 29 November 2012</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-3-december-2012">Living Standard — Last Updated 3 December 2012</h2>

<dl>
<dt>This Version:
Expand Down Expand Up @@ -42,7 +42,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-29-november-2012"
<p class="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
29 November 2012, the editors have made this specification available
3 December 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
Expand Down Expand Up @@ -2569,31 +2569,6 @@ <h4 id="queuing-a-mutation-record"><span class="secno">5.3.2 </span>Queuing a mu
<var title="">nextSibling</var>, run these steps:

<ol>
<li><p>Let <var title="">record</var> be a new <code><a href="#mutationrecord">MutationRecord</a></code>
object with its <code title="dom-MutationRecord-type"><a href="#dom-mutationrecord-type">type</a></code> set to
<var title="">type</var> and
<code title="dom-MutationRecord-target"><a href="#dom-mutationrecord-target">target</a></code> set to
<var title="">target</var>.

<li><p>If <var title="">name</var> and <var title="">namespace</var> are given,
set <var title="">record</var>'s
<code title="dom-MutationRecord-attributeName"><a href="#dom-mutationrecord-attributename">attributeName</a></code> to
<var title="">name</var>, and <var title="">record</var>'s
<code title="dom-MutationRecord-attributeNamespace"><a href="#dom-mutationrecord-attributenamespace">attributeNamespace</a></code>
to <var title="">namespace</var>.

<li><p>If <var title="">addedNodes</var>, <var title="">removedNodes</var>,
<var title="">previousSibling</var>, and <var title="">nextSibling</var> are
given, set <var title="">record</var>'s
<code title="dom-MutationRecord-addedNodes"><a href="#dom-mutationrecord-addednodes">addedNodes</a></code> to
<var title="">addedNodes</var>, <var title="">record</var>'s
<code title="dom-MutationRecord-removedNodes"><a href="#dom-mutationrecord-removednodes">removedNodes</a></code> to
<var title="">removedNodes</var>, <var title="">record</var>'s
<code title="dom-MutationRecord-previousSibling"><a href="#dom-mutationrecord-previoussibling">previousSibling</a></code> to
<var title="">previousSibling</var>, and <var title="">record</var>'s
<code title="dom-MutationRecord-nextSibling"><a href="#dom-mutationrecord-nextsibling">nextSibling</a></code> to
<var title="">nextSibling</var>.

<li><p>Let <var title="">interested observers</var> be an initially empty set
of <code><a href="#mutationobserver">MutationObserver</a></code> objects optionally paired with a string.

Expand Down Expand Up @@ -2649,6 +2624,31 @@ <h4 id="queuing-a-mutation-record"><span class="secno">5.3.2 </span>Queuing a mu
<var title="">interested observers</var>:

<ol>
<li><p>Let <var title="">record</var> be a new <code><a href="#mutationrecord">MutationRecord</a></code>
object with its <code title="dom-MutationRecord-type"><a href="#dom-mutationrecord-type">type</a></code> set to
<var title="">type</var> and
<code title="dom-MutationRecord-target"><a href="#dom-mutationrecord-target">target</a></code> set to
<var title="">target</var>.

<li><p>If <var title="">name</var> and <var title="">namespace</var> are given,
set <var title="">record</var>'s
<code title="dom-MutationRecord-attributeName"><a href="#dom-mutationrecord-attributename">attributeName</a></code> to
<var title="">name</var>, and <var title="">record</var>'s
<code title="dom-MutationRecord-attributeNamespace"><a href="#dom-mutationrecord-attributenamespace">attributeNamespace</a></code>
to <var title="">namespace</var>.

<li><p>If <var title="">addedNodes</var>, <var title="">removedNodes</var>,
<var title="">previousSibling</var>, and <var title="">nextSibling</var> are
given, set <var title="">record</var>'s
<code title="dom-MutationRecord-addedNodes"><a href="#dom-mutationrecord-addednodes">addedNodes</a></code> to
<var title="">addedNodes</var>, <var title="">record</var>'s
<code title="dom-MutationRecord-removedNodes"><a href="#dom-mutationrecord-removednodes">removedNodes</a></code> to
<var title="">removedNodes</var>, <var title="">record</var>'s
<code title="dom-MutationRecord-previousSibling"><a href="#dom-mutationrecord-previoussibling">previousSibling</a></code> to
<var title="">previousSibling</var>, and <var title="">record</var>'s
<code title="dom-MutationRecord-nextSibling"><a href="#dom-mutationrecord-nextsibling">nextSibling</a></code> to
<var title="">nextSibling</var>.

<li><p>If <var title="">observer</var> has a paired string,
set <var title="">record</var>'s <code title="">oldValue</code> to
<var title="">observer</var>'s paired string.
Expand Down

0 comments on commit b5d0565

Please sign in to comment.