@@ -27904,7 +27904,8 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...</code
27904
27904
pixel density</var>.</p></li>
27905
27905
27906
27906
<li>
27907
- <p><span>Queue a task</span> to:</p>
27907
+ <p><span>Queue an element task</span> on the <span>DOM manipulation task source</span>
27908
+ given the <code>img</code> element and following steps:</p>
27908
27909
27909
27910
<ol>
27910
27911
<li><p>If <i>restart animation</i> is set, then <span>restart the
@@ -27954,12 +27955,20 @@ was an English <a href="/wiki/Music_hall">music hall</a> singer, ...</code
27954
27955
image request</span> for the <span>current request</span> and the <span>pending request</span>,
27955
27956
and set <span>pending request</span> to null.</p></li>
27956
27957
27957
- <li><p>⌛ <span>Queue a task</span> to change the <span>current request</span>'s <span
27958
- data-x="img-req-url">current URL</span> to the empty string, and then, if the element has a
27959
- <code data-x="attr-img-src">src</code> attribute or it <span data-x="use srcset or
27960
- picture">uses <code>srcset</code> or <code>picture</code></span>, <span
27961
- data-x="concept-event-fire">fire an event</span> named <code data-x="event-error">error</code>
27962
- at the <code>img</code> element.</p></li>
27958
+ <li>
27959
+ <p>⌛ <span>Queue an element task</span> on the <span>DOM manipulation task
27960
+ source</span> given the <code>img</code> element and the following steps:</p>
27961
+
27962
+ <ol>
27963
+ <li><p>Change the <span>current request</span>'s <span data-x="img-req-url">current
27964
+ URL</span> to the empty string.</p></li>
27965
+
27966
+ <li><p>If the element has a <code data-x="attr-img-src">src</code> attribute or it <span
27967
+ data-x="use srcset or picture">uses <code>srcset</code> or <code>picture</code></span>, <span
27968
+ data-x="concept-event-fire">fire an event</span> named <code
27969
+ data-x="event-error">error</code> at the <code>img</code> element.</p></li>
27970
+ </ol>
27971
+ </li>
27963
27972
27964
27973
<li><p>⌛ Return.</p></li>
27965
27974
</ol>
@@ -91539,12 +91548,15 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
91539
91548
91540
91549
<p>To <dfn data-export="">queue a task</dfn> on a <span>task source</span> <var>source</var>,
91541
91550
which performs a series of steps <var>steps</var>, optionally given an event loop <var>event
91542
- loop</var>:</p>
91551
+ loop</var> and a document <var>document</var> :</p>
91543
91552
91544
91553
<ol>
91545
91554
<li><p>If <var>event loop</var> was not given, set <var>event loop</var> to the <span>implied
91546
91555
event loop</span>.</p></li>
91547
91556
91557
+ <li><p>If <var>document</var> was not given, set <var>document</var> to the <span>implied
91558
+ document</span>.</p></li>
91559
+
91548
91560
<li><p>Let <var>task</var> be a new <span data-x="concept-task">task</span>.</p></li>
91549
91561
91550
91562
<li><p>Set <var>task</var>'s <span data-x="concept-task-steps">steps</span> to
@@ -91554,7 +91566,7 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
91554
91566
<var>source</var>.</p></li>
91555
91567
91556
91568
<li><p>Set <var>task</var>'s <span data-x="concept-task-document">document</span> to the
91557
- <span>implied document</span >.</p></li>
91569
+ <var> document</var >.</p></li>
91558
91570
91559
91571
<li><p>Set <var>task</var>'s <span>script evaluation environment settings object set</span> to an
91560
91572
empty <span>set</span>.</p></li>
@@ -91565,13 +91577,32 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
91565
91577
<li><p><span data-x="list append">Append</span> <var>task</var> to <var>queue</var>.</p></li>
91566
91578
</ol>
91567
91579
91580
+ <p>To <dfn data-export="">queue an element task</dfn> on a <span>task source</span>
91581
+ <var>source</var>, with an element <var>element</var> and a series of steps
91582
+ <var>steps</var>:</p>
91583
+
91584
+ <ol>
91585
+ <li><p>Let <var>document</var> be <var>element</var>'s <span>node document</span>.</p></li>
91586
+
91587
+ <li><p>Let <var>event loop</var> be <var>document</var>'s <span
91588
+ data-x="concept-relevant-realm">relevant realm</span>'s corresponding <span>agent</span>'s
91589
+ <span>event loop</span>.</p></li>
91590
+
91591
+ <li><p><span>Queue a task</span> given <var>source</var>, <var>event loop</var>,
91592
+ <var>document</var>, and <var>steps</var>.</p></li>
91593
+ </ol>
91594
+
91568
91595
<p>To <dfn data-export="">queue a microtask</dfn> which performs a series of steps
91569
- <var>steps</var>, optionally given an event loop <var>event loop</var>:</p>
91596
+ <var>steps</var>, optionally given an event loop <var>event loop</var> and a document
91597
+ <var>document</var>:</p>
91570
91598
91571
91599
<ol>
91572
91600
<li><p>If <var>event loop</var> was not given, set <var>event loop</var> to the <span>implied
91573
91601
event loop</span>.</p></li>
91574
91602
91603
+ <li><p>If <var>document</var> was not given, set <var>document</var> to the <span>implied
91604
+ document</span>.</p></li>
91605
+
91575
91606
<li><p>Let <var>microtask</var> be a new <span data-x="concept-task">task</span>.</p></li>
91576
91607
91577
91608
<li><p>Set <var>microtask</var>'s <span data-x="concept-task-steps">steps</span> to
@@ -91580,8 +91611,8 @@ dictionary <dfn>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
91580
91611
<li><p>Set <var>microtask</var>'s <span data-x="concept-task-source">source</span> to the
91581
91612
<dfn>microtask task source</dfn>.</p></li>
91582
91613
91583
- <li><p>Set <var>microtask</var>'s <span data-x="concept-task-document">document</span> to the
91584
- <span>implied document</span >.</p></li>
91614
+ <li><p>Set <var>microtask</var>'s <span data-x="concept-task-document">document</span> to
91615
+ <var> document</var >.</p></li>
91585
91616
91586
91617
<li><p>Set <var>task</var>'s <span>script evaluation environment settings object set</span> to an
91587
91618
empty <span>set</span>.</p></li>
0 commit comments