-
Notifications
You must be signed in to change notification settings - Fork 523
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
Define referenceable algorithms for IntersectionObserver methods #427
Comments
When fixing this, also fix (or file an issue to fix) the "XXX" issues introduced in whatwg/html#5510 |
Is there an idiomatic way to do this? Is it just a matter of moving the language from the public API methods into new sections under Processing-Model/Algorithms, and referring to them from the public API description? I must say, it seems needlessly complicated to add this level of indirection to the spec. Could you instead follow the example given in issue #55 for getBoundingClientRect, and say something like: "Perform the steps described in the IntersectionObserver spec for the IntersectionObserver constructor." ? |
The usual way is a level of I don't think the example for I think there's an argument to be made that this is a bit annoying for writing specs and we could do something to make it easy to do the right thing, but for now, we need an extra |
Thanks for fixing! I tried today to update the HTML standard and ran into further issues, see #464 |
In whatwg/html#5510 I'm trying to specify
<img loading=lazy>
in terms of IntersectionObserver as per discussion in whatwg/html#5236As @domfarolino pointed out, in web specs we try not to call public APIs, but instead want to call the underlying algorithm directly. (Also see #401 )
For lazy-loaded images currently, we need to
IntersectionObserver
with a callback that is a set of steps defined in spec proseobserve()
unobserve()
The text was updated successfully, but these errors were encountered: