Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
awesomekling opened this issue Dec 24, 2023 · 0 comments

Comments

@awesomekling
Copy link
Member

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.

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

No branches or pull requests

1 participant