Node becomes empty if its parent has its innerHTML overwritten even if the node has existing variable references

Issue #111447


Apr 29, 2014
This issue is public.
Found in build #
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce



Repro Steps:

  1. Create a div with a child span that contains text
  2. Store a reference to the span in JS
  3. Alert the span’s text
  4. Set the div’s innerHTML to an empty string (or anything, really)
  5. Alert the span’s text - it’s blank!

Expected Results:

The node should maintain its contents

Actual Results:


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Kamen M.”

      Changed Assigned To from “Kamen M.” to “IPBS P.”

      Changed Status

      Changed Assigned To from “IPBS P.” to “Eugene V.”

      Changed Steps to Reproduce

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

    Sign in