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

I'm wondering how a script in a shadow tree can access its root node (DocumentOrShadowRoot), if there is no way to access the script element.

If they can get the script element, they can access the root node easily, via currentScipt.rootNode, where a lot of useful APIs are available.

Thus, I'm wondering that `window.currentRoot` is what we should have? Just as a naive idea...


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

Received on Monday, 4 April 2016 13:58:36 UTC