Skip to content

Editorial: Restructure update the image data step 15#12372

Merged
annevk merged 2 commits intowhatwg:mainfrom
jmdyck:ambig_2
Apr 15, 2026
Merged

Editorial: Restructure update the image data step 15#12372
annevk merged 2 commits intowhatwg:mainfrom
jmdyck:ambig_2

Conversation

@jmdyck
Copy link
Copy Markdown
Contributor

@jmdyck jmdyck commented Apr 15, 2026

Step 15 of the update the image data contains a postfix 'if' whose scope is ambiguous: does it start at the 'queue' or at the 'restart'? This PR adds structure to the step to make the scope clear (assuming it starts at 'queue').


/images.html ( diff )

@jmdyck
Copy link
Copy Markdown
Contributor Author

jmdyck commented Apr 15, 2026

An unrelated thing I noticed: whether the step 15 condition is true or not, the next thing that will happen is abort the image request for the pending request. So it seems like we could pull that instruction out of 15 and 16, and put it before 15.

Copy link
Copy Markdown
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple nits, but looks good to me overall.

Comment thread source Outdated
Comment on lines +32897 to +32898
data-x="img-req-state">state</span> is <span data-x="img-inc">partially available</span>,
then:</p>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data-x="img-req-state">state</span> is <span data-x="img-inc">partially available</span>,
then:</p>
data-x="img-req-state">state</span> is <span data-x="img-inc">partially available</span>:</p>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread source Outdated
<ol>
<li><p><span>Abort the image request</span> for the <span>pending request</span>.</p></li>

<li><p>If <i>restart animation</i> is set, <span>queue an element task</span> on the <span>DOM
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li><p>If <i>restart animation</i> is set, <span>queue an element task</span> on the <span>DOM
<li><p>If <i>restart animation</i> is set, then <span>queue an element task</span> on the <span>DOM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread source
</ol>
</li>

<li><p><span>Abort the image request</span> for the <span>pending request</span>.</p></li>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to move this in front to deduplicate I think that'd be good. I looked at "Abort the image request" and it doesn't invalidate any state we care about here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! I added a commit for this, but you've already merged the PR. Ah well, NBD.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh I’ll wait a bit longer next time. I assumed you were not comfortable with this change.

@annevk annevk merged commit fc559a5 into whatwg:main Apr 15, 2026
2 checks passed
@annevk
Copy link
Copy Markdown
Member

annevk commented Apr 15, 2026

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants