Skip to content

Update the image data - setting src to the same value logic seems incorrect #8080

Open
@zcorpan

Description

@zcorpan

https://html.spec.whatwg.org/multipage/images.html#updating-the-image-data

step 13:

If urlString is the same as the current request's current URL and current request's state is partially available, then abort the image request for the pending request, queue an element task on the DOM manipulation task source given the img element to restart the animation if restart animation is set, and return.

So this only restarts the animation / returns if current request's state is partially available, not if it's completely available. That seems wrong. cc @yoavweiss

I think it should be:

  1. If urlString is the same as the current request's current URL:
    1. If current request's state is partially available, then abort the image request for the pending request.
    2. If restart animation is set, then queue an element task on the DOM manipulation task source given the img element to restart the animation.
    3. Return.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions