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

If there's any chance to catch the ```currentShadowRoot``` instead of ```currentScript``` then, things like ```const myDom = window.currentScript.ownerDocument``` can be achieved faster. Usually, if you write ```currentScript``` then it follows te request for ```ownerDocument```...

-- 
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-320728183

Received on Monday, 7 August 2017 17:31:27 UTC