IE and Edge both don't support document.currentScript

Issue #7112634 • Assigned to Travis L.

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL:

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.

https://stackoverflow.com/questions/403967/how-may-i-reference-the-script-tag-that-loaded-the-currently-executing-script

https://www.youtube.com/watch?v=pjj9newZBp0

Expected Results:

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

Actual Results:

Dev Channel specific:

No

Attachments

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

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

    Sign in