Skip to content

Commit ee68507

Browse files
committed
Make update the image data run when the document becomes active.
1 parent c798686 commit ee68507

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

source

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,25 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
989989

990990
<ol>
991991

992-
<li><p>If the element's <span>node document</span> is not the <span>active document</span>,
993-
abort these steps.</p></li>
992+
<li>
993+
994+
<p>If the element's <span>node document</span> is not the <span>active document</span>,
995+
then run these substeps:</p>
996+
997+
<ol>
998+
999+
<li><p>Continue running this algorithm <span>in parallel</span>.</p></li>
1000+
1001+
<li><p>Wait until the element's <span>node document</span> is the <span>active document</span>.</p></li>
1002+
1003+
<li><p>If another instance of this algorithm for this <code>img</code> element was started after this instance
1004+
(even if it aborted and is no longer running), then abort these steps.</p></li>
1005+
1006+
<li><p><span>Queue a microtask</span> to continue this algorithm.</p></li>
1007+
1008+
</ol>
1009+
1010+
</li>
9941011

9951012
<li><p>If the user agent cannot support images, or its support for images has been disabled, then
9961013
<span>abort the image request</span> for the <span>current request</span> and the <span>pending request</span>,

0 commit comments

Comments
 (0)