w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 531 forks source link

Remove incorrect sentence about explicit root observers #483

Closed domfarolino closed 2 years ago

domfarolino commented 2 years ago

As discussed with @szager-chromium the other day, the sentence that I'm removing in this PR is incorrect. A target of an explicit root observer certainly does not have to be a same-origin-domain target, because you can provide an explicit root in cross-origin subframes, but in said subframes the target's setting's object's origin is of course cross-origin with that of the top-level one.


Preview | Diff

szager-chromium commented 2 years ago

What that paragraph is trying to say is that all targets of an explicit-root observer are defined by the spec as "same-origin-domain" targets. The relationship with the top-level origin is only relevant for implicit-root observers.

Feel free to fix this PR, or I will put up a separate one.

szager-chromium commented 2 years ago

Closing this in favor of:

https://github.com/w3c/IntersectionObserver/pull/491