W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] <script> features

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 24 Mar 2012 04:41:38 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1203240441070.22654@ps20323.dreamhostps.com>
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               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 23 March 2012 21:41:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC