Crash or reload loop upon setting the "name" or "for" attribute of an <output> element

Fixed Issue #16013873

Details

Author
Peter S.
Created
Feb 19, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
41.16299
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

  1. Create an HTML document which includes an <output> element.
  2. Affect the “for” or “name” attribute of said element, e/g output.setAttribute(“name","foo”);
  3. Page may loop if executed onload, or will crash upon page inspection (f12).
  • See related Issue #11141600.
<!DOCTYPE html>
<html>
<head>
  <title>Test</title>
  <script>
    var construct = function(event){
      var output = document.querySelector("output");
      try {

        output.setAttribute("name", "total");
        output.value = "testing";

      } catch (error) {
        console.error(error.status, error);
      }
    };
    window.addEventListener("load", construct);
  </script>
</head>
<body>
  <form name="foo">
    <input name="quantity" />
    <input name="price" value="3" />
    <output></output>
  </form>
</body>
</html>

Attachments

0 attachments

    Comments and activity

    • Seeing the exact same issue on our web app, a major blocker for us as it won’t render on the latest Edge.

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 17083 and is available in our Insider Preview build.

      Best Wishes,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Fixed”

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

    Sign in