Element.addEventListener('click', null) throws Error with dev tools opened

Fixed Issue #14063806

Details

Author
valdrin k.
Created
Oct 3, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

On Edge 15, Element.addEventListener('click', null) or Element.addEventListener('click', undefined) will throw the error Unable to get property 'handleEvent' of undefined or null reference when the F12 developer tools is opened.

If the script is run before opening the dev tools, the errors are not logged in the console.

To reproduce, execute this code on Edge 15 (jsbin here):

<body>
  <script>
     document.body.addEventListener('click', undefined);
     document.body.addEventListener('click', null);
  </script>
</body>

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Status to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 16299 and is available in our latest Insider Preview build in the Fast ring.

      Best Wishes,
      The MS Edge Team

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

    Sign in