activeElement is an empty Object

Won’t fix Issue #10998788

Details

Author
valdrin k.
Created
Feb 17, 2017
Privacy
This issue is public.
Found in
  • Internet Explorer
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Please see the following code: when I load index.html, the activeElement of the document inside the iframe will be an empty object.
This doesn’t happen if I load test.html directly.

<!--index.html-->
<html><body>
  <iframe src="test.html"></iframe>
</body></html>

<!-- test.html -->
<html><body>
  <input type="text">
  <script>
    var input = document.querySelector('input');
    input.focus();
    input.parentNode.removeChild(input);
    console.log(document.activeElement); // <-- empty object!
  </script>
</body><html>

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Status to “Won’t fix”

    • Please note that we are not working on IE feature bugs any
      longer at this time unless they are security related.

       

      Alternatively, if you have a premier support
      contract you can visit

      https://premier.microsoft.com

      and open a support incident and work with an engineer to
      address this issue.

       

      All the best,

      The MS Edge Team

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

    Sign in