On Fri, Feb 3, 2012 at 10:34 PM, Ian Hickson i...@hixie.ch wrote:
On Mon, 16 Aug 2010, Jonas Sicking wrote:
I'd like to propose a couple of simple features to make script
elements more useful:
1. document.currentScript
This property returns the currently executing script, if any. Returns
On Fri, 23 Mar 2012, Jonas Sicking wrote:
The whole point of this feature is to enable the js-code inside a loaded
script to use the .currentScript property in order to find the script
element in the DOM which loaded it.
Ah, ok. What's the use case for that?
--
Ian Hickson