Re: [w3c/webcomponents] document.currentScript from a script in a shadow tree. (#477)

So the alternate proposal `window.currentScript` is thrown out with the bathwater too? 

My need is not really the get the `<script>` element itself but some previous elements in the Shadow DOM tree, (or the shadow root, or the host). 

Maybe there's a best approach that I missed (apart from using customized built-in elements... when they are implemented).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/477#issuecomment-288465803

Received on Wednesday, 22 March 2017 16:56:51 UTC