Calling IntersectionObserver.prototype.unobserve() for unobserved elements throws TypeMismatchError

Fixed Issue #12577586

Details

Created
Jun 30, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Fixed in build #
16.16260
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

const observer = new IntersectionObserver(()=>{});
observer.unobserve(document.body);

This code calls unobserve() for unobserved element. Chrome and Firefox ignores this, but Edge throws TypeMismatchError.

Attachments

0 attachments

    Comments and activity

    You need to sign in to your Microsoft account to add a comment.

    Sign in