Setting a text node's textContent to empty string isn't immediately rendered

Confirmed Issue #11244341 • Assigned to Peter S.

Details

Author
Jeremy D.
Created
Mar 12, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Minimal Reproduction: Run / Gist

Works in IE 11, Chrome, Firefox. Other browsers not tested.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Edge Issue</title>
  <style>
    div {
      height: 60px;
    }
  </style>
</head>
<body>
  <div>
    <h1>test</h1>
    This text should disappear after 100ms. Resizing the window will make it disappear.
  </div>
  <script>
    setTimeout(function() {
      document.querySelector('h1').nextSibling.textContent = '';
    }, 100);
  </script>
</body>
</html>

Attachments

0 attachments

    Comments and activity

    • forgot to mention: removing the style fixes the issue

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Rick J.”

      Changed Assigned To from “Rick J.” to “Christian F.”

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Assigned To from “Christian F.” to “Daniel L.”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To from “Bogdan B.” to “Peter S.”

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

    Sign in