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

Issue #11244341 • Assigned to Rick J.

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.”

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

    Sign in