IE and Edge both don't support document.currentScript

Fixed Issue #7112634


Apr 5, 2016
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

Use IE.
Use a document with frames/iframes or async loading.
Have the HTML file load several scripts (asynchronously, or several scripts in several frames).
Try to get parameters from the script’s queryString without having to add id or data-xy attributes to the script tag.
It’s impossible in IE/Edge. And in IE/Edge only. Works fine in Firefox and Chrome.

Expected Results:

Getting the current script, especially the current script’s URL.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Steven K.”

      Changed Assigned To from “Steven K.” to “Travis L.”

      Changed Assigned To from “Travis L.” to “IE S.”

      Changed Status to “Fixed”

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

    Sign in