This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23042 - [imports]: There should be a way to retrieve the document of executing script.
Summary: [imports]: There should be a way to retrieve the document of executing script.
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20683
  Show dependency treegraph
 
Reported: 2013-08-22 06:00 UTC by Morrita Hajime
Modified: 2013-10-04 06:32 UTC (History)
0 users

See Also:


Attachments

Description Morrita Hajime 2013-08-22 06:00:46 UTC
Script needs to know where it is running.

One possibility is to update document.currentScript so that it ponits
the <script> elements of running script.
This is how Blink implementation happens to be working.
Comment 1 Morrita Hajime 2013-10-04 06:32:14 UTC
https://dvcs.w3.org/hg/webcomponents/rev/0cc454ff223a