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

Fixed, not yet flighted Issue #12577586


Jun 30, 2017
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

const observer = new IntersectionObserver(()=>{});

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


0 attachments

    Comments and activity

    • Issue confirmed in Edge 16.16233: Chrome 59 and Firefox 55 both ignore an element that’s not already observed, whereas Edge throws a TypeMismatchError.

      The spec does not specify what to do in cases where unobserve() is called on a node that isn’t already observed:

    • Microsoft Edge Team

      Changed Assigned To to “Andrew B.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

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

    Sign in