@@ -3906,9 +3906,9 @@ must return null.
39063906<dfn id=mutation-observer-list>pending mutation observers</dfn> (a <a for=/>set</a> of zero or more
39073907{{MutationObserver}} objects), which is initially empty.
39083908
3909+ <div algorithm>
39093910<p> To
3910- <dfn noexport id=queue-a-mutation-observer-compound-microtask>queue a mutation observer microtask</dfn> ,
3911- run these steps:
3911+ <dfn id=queue-a-mutation-observer-compound-microtask>queue a mutation observer microtask</dfn> :
39123912
39133913<ol>
39143914 <li><p> If the <a>surrounding agent</a> 's <a>mutation observer microtask queued</a> is true, then
@@ -3918,8 +3918,10 @@ run these steps:
39183918
39193919 <li><p> <a lt="queue a microtask">Queue</a> a <a>microtask</a> to <a>notify mutation observers</a> .
39203920</ol>
3921+ </div>
39213922
3922- <p> To <dfn export>notify mutation observers</dfn> , run these steps:
3923+ <div algorithm="notify mutation observers">
3924+ <p> To <dfn export>notify mutation observers</dfn> :
39233925
39243926<ol>
39253927 <li><p> Set the <a>surrounding agent</a> 's <a>mutation observer microtask queued</a> to false.
@@ -3957,6 +3959,7 @@ run these steps:
39573959 <dfn event for=HTMLSlotElement>slotchange</dfn> , with its {{Event/bubbles}} attribute set to true,
39583960 at <var> slot</var> .
39593961</ol>
3962+ </div>
39603963
39613964<hr>
39623965
@@ -4088,11 +4091,14 @@ dictionary MutationObserverInit {
40884091 returns what was in there.
40894092</dl>
40904093
4094+ <div algorithm>
40914095<p> The
40924096<dfn constructor for=MutationObserver lt=MutationObserver(callback)><code>new MutationObserver(<var>callback</var>)</code></dfn>
40934097constructor steps are to set <a>this</a> 's <a for=MutationObserver>callback</a> to
40944098<var> callback</var> .
4099+ </div>
40954100
4101+ <div algorithm>
40964102<p> The
40974103<dfn method for=MutationObserver><code>observe(<var>target</var>, <var>options</var>)</code></dfn>
40984104method steps are:
@@ -4153,7 +4159,9 @@ method steps are:
41534159 <a for=MutationObserver>node list</a> .
41544160 </ol>
41554161</ol>
4162+ </div>
41564163
4164+ <div algorithm>
41574165<p> The <dfn method for=MutationObserver><code>disconnect()</code></dfn> method steps are:
41584166
41594167<ol>
@@ -4164,7 +4172,9 @@ method steps are:
41644172
41654173 <li><p> <a for=queue>Empty</a> <a>this</a> 's <a for=MutationObserver>record queue</a> .
41664174</ol>
4175+ </div>
41674176
4177+ <div algorithm>
41684178<p> The <dfn method for=MutationObserver><code>takeRecords()</code></dfn> method steps are:
41694179
41704180<ol>
@@ -4175,13 +4185,15 @@ method steps are:
41754185
41764186 <li><p> Return <var> records</var> .
41774187</ol>
4188+ </div>
41784189
41794190
41804191<h4 id=queueing-a-mutation-record>Queuing a mutation record</h4>
41814192
4182- <p> To <dfn noexport>queue a mutation record</dfn> of <var> type</var> for <var> target</var> with
4193+ <div algorithm>
4194+ <p> To <dfn>queue a mutation record</dfn> of <var> type</var> for <var> target</var> with
41834195<var> name</var> , <var> namespace</var> , <var> oldValue</var> , <var> addedNodes</var> ,
4184- <var> removedNodes</var> , <var> previousSibling</var> , and <var> nextSibling</var> , run these steps :
4196+ <var> removedNodes</var> , <var> previousSibling</var> , and <var> nextSibling</var> :
41854197
41864198<ol>
41874199 <li><p> Let <var> interestedObservers</var> be an empty <a for=/>map</a> .
@@ -4259,18 +4271,21 @@ method steps are:
42594271
42604272 <li><p> <a>Queue a mutation observer microtask</a> .
42614273</ol>
4274+ </div>
42624275
4263- <p> To <dfn noexport>queue a tree mutation record</dfn> for <var> target </var> with
4264- <var> addedNodes </var> , <var> removedNodes </var> , <var> previousSibling </var> , and
4265- <var> nextSibling </var> , run these steps :
4276+ <div algorithm>
4277+ <p> To <dfn>queue a tree mutation record</dfn> for <var> target </var> with <var> addedNodes </var> ,
4278+ <var> removedNodes </var> , <var> previousSibling </var> , and <var> nextSibling </var> :
42664279
42674280<ol>
4268- <li><p> Assert: either <var> addedNodes</var> or <var> removedNodes</var> <a for=set>is not empty</a> .
4281+ <li><p> <a for=/>Assert</a> : either <var> addedNodes</var> or <var> removedNodes</var>
4282+ <a for=set>is not empty</a> .
42694283
42704284 <li><p> <a>Queue a mutation record</a> of "<code> childList</code> " for <var> target</var> with
42714285 null, null, null, <var> addedNodes</var> , <var> removedNodes</var> , <var> previousSibling</var> ,
42724286 and <var> nextSibling</var> .
42734287</ol>
4288+ </div>
42744289
42754290
42764291<h4 id=interface-mutationrecord>Interface {{MutationRecord}}</h4>
0 commit comments