8000 Callback steps in "start intersection-observing a lazy loading element" may return too early · Issue #10019 · whatwg/html · GitHub
[go: up one dir, main page]

Skip to content

Callback steps in "start intersection-observing a lazy loading element" may return too early #10019

@awesomekling

Description

@awesomekling

What is the issue with the HTML Standard?

The callback steps in this algorithm has the following:

  1. For each entry in entries:

    1. Let resumptionSteps be null.

    2. If entry.isIntersecting is true, then set resumptionSteps to entry.target's lazy load resumption steps.

    3. If resumptionSteps is null, then return.

^-- here's the bug: If resumptionSteps is null, we will bay early, even if we didn't look at all entries yet.

It seems to me that we should simply "continue" to the next iteration of the loop in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0