From da0c70215e44131d84a4240cd31e37d9dff986af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E4=B8=9C=E5=8B=8B=20=7C=20=E9=87=91=E6=9D=B1?= =?UTF-8?q?=E5=8B=B3=20=7C=20=EA=B9=80=EB=8F=99=ED=9B=88=20=7C=20Jin=20Don?= =?UTF-8?q?gxun?= Date: Thu, 19 Nov 2026 13:00:47 +0800 Subject: [PATCH] Use the observer argument in the unobserve algorithm --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index c472c0c..96d5e03 100644 --- a/index.bs +++ b/index.bs @@ -667,9 +667,9 @@ To unobserve a target Element, given an {{IntersectionObserver}} |obs and an {{Element}} |target|, follow these steps: 1. Remove the {{IntersectionObserverRegistration}} record - whose {{IntersectionObserverRegistration/observer}} property is equal to |this| + whose {{IntersectionObserverRegistration/observer}} property is equal to |observer| from |target|'s internal {{[[RegisteredIntersectionObservers]]}} slot, if present. -2. Remove |target| from |this|'s internal {{[[ObservationTargets]]}} slot, if present +2. Remove |target| from |observer|'s internal {{[[ObservationTargets]]}} slot, if present

Queue an Intersection Observer Task