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

Issue #111447

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL = http://jsfiddle.net/JUnj5/

URL:

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!

http://jsfiddle.net/JUnj5/

Expected Results:

The node should maintain its contents

Actual Results:

Attachments

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