Support Event constructors in JavaScript

External Issue #608695

Details

Created
Jul 10, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

  1. Goto F12 > Console

  2. copy code into console:
    var event = new Event(“load”);
    {
    event = new Event(“load”); // Everybody except IE.
    }
    window.dispatchEvent(event);

  3. hit enter and should get true return

  1. or open F12>Console and goto http://srvr-clw/bugs/67588

Expected Results:

var event;
try // Current standard.
{
event = new Event(“load”); // Everybody except IE.
}
catch(error) // IE9-11
{
event = document.createEvent(“Event”);
event.initEvent("load", true, false);
}
window.dispatchEvent(event);

can be replaced by:

var event = new Event(“load”);
{
event = new Event(“load”); // Everybody except IE.
}
window.dispatchEvent(event);

Actual Results:

Dev Channel specific:

Yes

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “IE F.”

      Changed Status to “External”

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

    Sign in